一、简单论坛的搭建(来自于老吴Discuz_X3.2_SC_UTF8.zip)
1 . unzip Discuz_X3.2_SC_UTF8.zip##解压
2 . cd readme/
less readme.txt ##查看安装过程
3 . mv upload/ /usr/local/lnmp/nginx/html/bbs
4 . cd /usr/local/lnmp/nginx/html/bbs
chmod 777 config/ data/ uc_client/ uc_server/ -R
5 . cd /usr/local/lnmp/php/etc/
vim php.ini (修改如下)
1001 pdo_mysql.default_socket= /usr/local/lnmp/mysql/data/mysql.sock
1150 mysql.default_socket = /usr/local/lnmp/mysql/data/mysql.sock
1210 mysqli.default_socket = /usr/local/lnmp/mysql/data/mysql.sock
6.更改完配置文件刷新服务,查看端口
/etc/init.d/php-fpm reload
查看9000端口: netstat -antlp | grep :9000
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 7491/php-fpm
7.chmod 755 /usr/local/lnmp/mysql/data/##此时网页才有权限都下面的内容
[root@server1 etc]# ll -d /usr/local/lnmp/mysql/data/ <