流星需要sudo才能运行

编程入门 行业动态 更新时间:2024-10-23 21:38:16
本文介绍了流星需要sudo才能运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

以前,我只需运行mrt即可启动Meteor 0.6.6.3.

Previously I was able to start Meteor 0.6.6.3 by simply running mrt.

最近,除非我用sudo mrt以root身份运行,否则Meteor 0.7.0.1无法正常运行.像MONGO_URL这样的环境变量需要root才能设置.

Recently, Meteor 0.7.0.1 wont run properly unless I run it as root with sudo mrt. Environmental variables like MONGO_URL requires root to set it.

有什么想法吗?我在Mac OSX上使用Mountain Lion.

Any ideas what happened? I'm using Mountain Lion on Mac OSX.

推荐答案

您以前可能已经使用sudo运行过它.当您仅使用sudo运行一次并写入文件时,该文件将成为root文件root用户文件,因此它需要更多权限才能运行,也不会运行 按说.

You might have run it with sudo once before. When you run it with sudo just once and a file is written the files become root files root user file so it needs more permissions to run and wont run ordinarily.

一旦它必须具有软件包的更新文件,但您可能已经运行过sudo mrt,但是它们现在由root拥有,而不是普通用户拥有.

You might have run sudo mrt once it must have updated files for a package but they're now owned by root instead of your normal user.

我确定有一个终端命令可以将其取回,但使用磁盘实用程序并运行修复磁盘权限"也可以解决该问题(我认为).

I'm sure theres a terminal command to get it back but using Disk Utility and running 'Repair Disk Permissions' can also fix it (i think).

更多推荐

流星需要sudo才能运行

本文发布于:2023-11-13 00:04:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1582854.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:流星   sudo

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!