wget http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpmrpm -ivh nginx-release-centos-7-0.el7.ngx.noarch.rpmyum -y install nginxsystemctl start nginx
3.检查NGINX服务器 4.关闭NGINX服务器http://公网IP/
5.安装PHPsystemctl stop nginx
6.下载Discuz安装包1. 安装Apache服务器、PHPFastCGI管理器
yum install -y httpd php php-fpm php-server php-mysql
2. 启动httpd和php-fpm服务
systemctl start httpd
systemctl start php-fpm
3. 配置服务开机启动
systemctl enable httpd
systemctl enable php-fpm
7.安装Discuzwget https://www.xinb2b.cn/aimg/bk47/fv8lksgeh9chugqpkmfoyf4g95rv9j761pzcwbdh-0.jpg
##解压#
unzip Discuz_X3.3_SC_UTF8.zip
##挪到新的路径
mv /root/upload/* /var/www/html
##修改权限
chmod -R 777 /var/www/html
8.登录论坛网站,检验是否可以正常发帖http://公网IP/
注意:
1.数据库Host选择内网时,保证数据库网段与服务器一致;
2.数据库Host选择公网时,服务器也需要有公网连接;