小编Jas*_*man的帖子

services.json无法打开流:Laravel 4中的权限被拒绝

我正在玩一个正在运行的Laravel 4安装并将所有内容都移到子文件夹中.然后我决定不这样做,我把它全部移回(全部通过命令行):

mv * /folder
Run Code Online (Sandbox Code Playgroud)

然后

cd folder
mv * ../
Run Code Online (Sandbox Code Playgroud)

现在,该网站抛出以下错误:

file_put_contents(/var/www/quantquote/app/storage/meta/services.json): failed to open stream: Permission denied
Run Code Online (Sandbox Code Playgroud)

以下是完整错误的屏幕截图:

http://i.imgur.com/8deGG97.png

我已经尝试将/ storage文件夹的权限设置为777无效.

laravel laravel-4

24
推荐指数
7
解决办法
3万
查看次数

Node.js ReferenceError

这是我第一次去NodeJS.我在DigitalOcean的一个实例上成功安装了它.

我有以下helloworld.js

require("http");

http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.write("Hello World");
response.end();
}).listen(8888);console.log('Hello world');
Run Code Online (Sandbox Code Playgroud)

当我通过"node helloworld.js"运行它时,我收到以下错误:

/home/jason/helloworld.js:4
http.createServer(function(request, response) {
^
ReferenceError: http is not defined
at Object.<anonymous> (/home/jason/helloworld.js:4:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
jason@do:~$
Run Code Online (Sandbox Code Playgroud)

有人能指出我正确的方向吗?

node.js

19
推荐指数
1
解决办法
4万
查看次数

标签 统计

laravel ×1

laravel-4 ×1

node.js ×1