Symfony服务器:运行错误 [英] Symfony server:run error
本文介绍了Symfony服务器:运行错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试运行symfony2项目myproject
时出现此错误.我认为出现错误是因为在该端口8000
上我有ajenti
服务器与nginx
运行.
I'm getting this error when I'am trying to run myproject
, symfony2 project. I think that the error came up because on that port 8000
I have ajenti
server running with nginx
.
Server running on http://127.0.0.1:8000
Quit the server with CONTROL-C.
RUN '/usr/bin/php5' '-S' '127.0.0.1:8000' '/srv/myproject/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/router_dev.php'
RES 1 Command did not run successfully
我该怎么办?
我检查了文件权限. sudo chmod 777 -R /srv/myproject
I checked files permissions. sudo chmod 777 -R /srv/myproject
推荐答案
使用如下命令:
php app/console server:run 127.0.0.1:8080
要在端口8080上运行服务器或将端口更改为您自己的喜好
to run the server on port 8080 or change the port to your own preference
这篇关于Symfony服务器:运行错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文