OS: CentOS Linux release 7.2.1511 (Core)
PHP: 7.02
Install Composer
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
参考:https://www.epictrim.com/ideas/install-composer-on-centos/
Install Workerman
su wenki # 切换成普通用户
composer require workerman/workerman
Function stream_socket_server is disabled?
vi php.ini
disable_functions = passthru,system,chroot,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,fsocket,popen
#remove stream_socket_server & restart php