一、配置流程
1、添加域名,建立主机
1 |
lnmp vhost add |
2、修改.conf文件
1 2 3 4 5 6 7 8 |
//进入 cd /usr/local/nginx/conf/vhost //301 if ($host != 'wpcdeckingfloor.com') { rewrite ^/(.*)$ http://wpcdeckingfloor.com/$1 permanent; } //ssl 301 rewrite ^/(.*)$ https://wpcdeckingfloor.com/$1 permanent; |
3、下载帝国CMS并解压
1 2 3 4 |
cd /home/wwwroot/ wget http://inquiry.chinawpcforsale.com/1.zip unzip 1.zip mv EmpireCMS7.0/* /home/wwwroot/wpcdeckingfloor.com |
4、修改文件权限
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/d chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/s chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/t chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/search chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/index.html chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/html chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/e/admin/ebak/bdata chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/e/admin/ebak/zip chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/e/config/config.php chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/e/data chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/e/install chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/e/member/iframe/index.php chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/e/member/login/loginjs.php chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/e/pl/more/index.php chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/e/sch/index.php chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/e/template chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/e/tool/feedback/temp chmod -R 777 /home/wwwroot/wpcdeckingfloor.com/e/tool/gbook/index.php |
总共0 条评论。