Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Symfony服务器未启动_Symfony_Connect_Host - Fatal编程技术网

Symfony服务器未启动

Symfony服务器未启动,symfony,connect,host,Symfony,Connect,Host,我设置了Symfony 3,当我尝试启动服务器时,会发生以下情况: [heigold1@centos aqua_note]$ php bin/console server:start [OK] Server listening on http://127.0.0.1:8000 [heigold1@centos aqua_note]$ (it goes back to the command prompt???) [Symfony\Component\Debug\Exception\

我设置了Symfony 3,当我尝试启动服务器时,会发生以下情况:

[heigold1@centos aqua_note]$ php bin/console server:start
[OK] Server listening on http://127.0.0.1:8000    

[heigold1@centos aqua_note]$ (it goes back to the command prompt???) 

[Symfony\Component\Debug\Exception\UndefinedFunctionException]                              
Attempted to call function "posix_setsid" from namespace "Symfony\Bundle\WebServerBundle".  
    server:start [-d|--docroot DOCROOT] [-r|--router ROUTER] [--pidfile PIDFILE] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [--] <command> [<addressport>]
[heigold1@centosaqua_note]$php bin/控制台服务器:开始
[确定]服务器正在侦听http://127.0.0.1:8000    
[heigold1@centosaqua_note]$(返回命令提示符??)
[Symfony\Component\Debug\Exception\UndefinedFunctionException]
试图从命名空间“Symfony\Bundle\WebServerBundle”调用函数“posix_setsid”。
服务器:启动[-d |--docroot-docroot][-r |--router-router][-pidfile-pidfile][-h |--help][-q |--quiet][v | vv | vvv |--verbose][-v |--version][-ansi][-no-ansi][-no-interaction][-e |---env-env][-no-debug][-]我收到以下消息:

This site can’t be reached 127.0.0.1 refused to connect. 无法访问此网站 127.0.0.1拒绝连接。

非常感谢您的帮助。

您似乎缺少
php posix
扩展。请安装它(或启用它)以解决此问题

请参阅
phpinfo()
的输出以查看安装了哪个扩展。

尝试以下操作:

php bin/console server:start --force
因为你的服务器已经启动了

或:尝试呼叫
--帮助

php bin/console server:start --help

........................................................
你也可以试试这个

yum install php-process
为php71启用posix.works