51工具盒子

依楼听风雨
笑看云卷云舒,淡观潮起潮落

nginx部署知乎产品Wecenter

1.配置Nginx虚拟主机站点,域名为zh.baimei.com

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | server { listen 80; server_name zh.baimei.com; root /code/zh; index index.php index.html; location ~ \.php$ { root /code/zh; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } |

  1. 下载源码:

WeCenter_V3.6.2.zip

在群文件里

chown -R www.www /code/zh/
  1. 由于wecenter产品需要依赖数据库, 所以需要手动建立数据库

    #1.登陆数据库 [root@http-server ~]# mysql -uroot -plzy123.com

    #2.创建wordpress数据库 MariaDB [(none)]> create database zh; MariaDB [(none)]> exit

3.通过浏览器访问网站

http://zh.baimei.com/install/

赞(0)
未经允许不得转载:工具盒子 » nginx部署知乎产品Wecenter