php游戏顺序怎样布置
这里以centos7效劳器解说怎样布置php游戏顺序。
布置游戏顺序和一般顺序没有区分,步骤就是搭建php实行环境,web环境上传源码。
1、装置httpd
yum install httpd -y
2、启动httpd
systemctl start httpd # service httpd start
3、修正httpd设置,将端口修正为游戏须要的端口号
vim /etc/httpd/conf/httpd.conf
找到Listen 80 将80改成游戏须要的端口如:8080
以后按下esc - :wq 保留退出。
4、重启效劳
systemctl restart httpd # service httpd restart
5、装置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-common.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
6、上传游戏源码到网站根目录
7、如果运用的vps,须要在效劳商那边设置安全组把游戏用获得的端口开放。
更多PHP相干学问,请接见ki4网!
以上就是php游戏顺序怎样布置的细致内容,更多请关注ki4网别的相干文章!