标签:fir flush ide 安装程序 ima none play mod etc
##创建BBS数据库在144
mysql -uroot -proot create database bbs; show databases; grant all on bbs.*to bbs@‘localhost‘ identified by ‘root‘; ==>grant all on bbs.*to bbs@‘192.168.25.%‘ identified by ‘root‘; flush privileges; select user,host from mysql.user;
##远程连接数据库:
mysql -ubbs -proot -h 192.168.25.138 echo ‘ 192.168.25.144 www.bbs.com bbs.com‘>> /etc/hosts
##配置BBS和Nginx
在Nginx服务器下面配置bbs的Vhosts
vim /usr/local/nginx/conf/nginx.conf -->添加include vim /usr/local/nginx/conf/extra/bbs.conf -->配置域名 vim /etc/hosts -->添加DNS解析 /usr/local/nginx/sbin/nginx -t /usr/local/nginx/sbin/nginx -s reload -->重启服务 mkdir -p /usr/local/nginx/html/bbs -->创建虚拟路径 cd /usr/local/nginx/html chown -R root.root ./bbs find ./blog/ -type f|xargs chmod 644 find ./blog/ -type d|xargs chmod 755 -->更改权限
##下载&&安装BBS
wget http://download.comsenz.com/DiscuzX/3.4/Discuz_X3.4_SC_UTF8.zip -->q不显示 unzip Discuz_X3.4_SC_UTF8.zip rm Discuz_X3.4_SC_UTF8.zip -rf cd /usr/local/nginx/html/bbs cp upload/* ./ -->把文件直接放在bbs的根目录下,upload有安装脚本 chown -R nginx.nginx bbs/ -->涉及用户提交头像等操作,简单起见,先改为nginx,后进行修改
页面显示:
http://www.bbs.com/forum.php
收回数据库权限:
drop user bbs@‘192.168.25.%‘; flush privileges; grant update,insert,delete,drop,select on bbs.*to bbs@‘192.168.25.%‘ identified by ‘root‘;删除安装程序,防止论坛再次安装
rm -rf /usr/local/nginx/html/bbs/install
用户上传的数据:--》将来挂在到NFS上
上传图片的路径:
cd /usr/local/nginx/html/bbs/data/attachment/forum/201709/02查看头像文件上传路径
cd /usr/local/nginx/html/bbs find ./ type f -name ‘*.jpg‘ -mmin -13 ./uc_server/data/avatar/000/00/00/01_avatar_small.jpg---------------------------------------------------------------------------------------
标签:fir flush ide 安装程序 ima none play mod etc
原文地址:https://www.cnblogs.com/ftl1012/p/9302286.html