php游戏顺序怎样部署
这里以centos7效劳器解说若何部署php游戏顺序。
部署游戏顺序以及一般顺序不区分,步骤就是搭建php执行环境,web环境上传源码。
一、装置httpd
yum install httpd -y
二、启动httpd
systemctl start httpd # service httpd start
三、修正httpd设置装备摆设,将端口修正为游戏需求的端标语
vim /etc/httpd/conf/httpd.conf
找到Listen 80 将80改成游戏需求的端口如:8080
之后按下esc - :wq 保留加入。
四、重启效劳
systemctl restart httpd # service httpd restart
五、装置php
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
装置php7
yum install php70w.x86_64 php70w-cli.x86_64 php70w-co妹妹on.x86_64 php70w-gd.x86_64 php70w-ldap.x86_64 php70w-mbstring.x86_64 php70w-mcrypt.x86_64 php70w-mysql.x86_64 php70w-pdo.x86_64
装置php-fpm
yum install php70w-fpm php70w-opcache
启动php-fpm
systemctl start php-fpm
开机启动设置
systemctl enable php-fpm systemctl daemon-reload
六、上传游戏源码到网站根目次
七、若是应用的vps,需求正在效劳商哪里设置平安组把游戏用失去的端口开放。
更多PHP相干常识,请拜访PHP中文网!
以上就是php游戏顺序怎样部署的具体内容,更多请存眷资源魔其它相干文章!
标签: php php教程 php故障解决 php使用问题 游戏部署
版权声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。
抱歉,评论功能暂时关闭!