网站搭建论坛教程(服务器怎么搭建)
更新时间:2021-09-18 17:13:17
来源: 网络
近期可能很多人都在关注网站搭建论坛教程相关的内容,今日小编也是在网上找了很多关于 网站搭建论坛教程 相关信息并整理如下,希望对大家有所帮助:
1.创建服务器ECS centos7.62.安装NGINX,并设置开机启动
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
http://公网IP/
4.关闭NGINX服务器
systemctl stop nginx
5.安装PHP1. 安装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
6.下载Discuz安装包
wget http://download.comsenz.com/DiscuzX/3.3/Discuz_X3.3_SC_UTF8.zip
##解压#
unzip Discuz_X3.3_SC_UTF8.zip
##挪到新的路径
mv /root/upload/* /var/www/html
##修改权限
chmod -R 777 /var/www/html
7.安装Discuz
http://公网IP/
注意:
1.数据库Host选择内网时,保证数据库网段与服务器一致;
2.数据库Host选择公网时,服务器也需要有公网连接;
8.登录论坛网站,检验是否可以正常发帖
以上就是关于网站搭建论坛教程 相关问题啦,如需了解更多关于网站搭建论坛教程问题,关注我们的下次更新哦