1.部署WeCenter
1.创建 web根目录
mkdir -p /web
2.上传WeCenter压缩包 并解压到/web目录下
unzip WeCenter_3-2-2.zip -d /web
3.查看文件并把文件的属主和属组改为nginx
[root@web01 ~]# chown -R nginx.nginx WeCenter_3-2-2.zip [root@web01 ~]# ll WeCenter_3-2-2.zip -rw-r--r-- 1 nginx nginx 7406198 Oct 8 17:10 WeCenter_3-2-2.zip
4.修改页面权限
[root@web01 ~]# sed -i '/^user/c user = nginx' /etc/php-fpm.d/www.conf [root@web01 ~]# sed -i '/^group/c group = nginx' /etc/php-fpm.d/www.conf
5.进入数据库
6.在数据库中创建WeCenter的数据库
mysql> create database wecenter; Query OK, 1 row affected (0.00 sec)
7.重启nginx,php-fpm服务
systemctl restart nginx php-fpm
2.部署typecho
1.上传typecho压缩包 并解压到/web目录下
[root@web01 ~]# rz -E rz waiting to receive. [root@web01 ~]# unzip typecho.zip -d /web
[root@web01 ~]# ls /web 0.9.13.12.12.-release.tar.gz index.php WeCenter322 h5game mysqli.php
2..查看文件并把文件的属主和属组改为nginx
[root@web01 ~]# chown -R nginx.nginx /web [root@web01 ~]# ll /web total 80 drwxr-xr-x 5 nginx nginx 4096 Apr 1 2022 admin drwxr-xr-x 6 nginx nginx 91 Mar 5 2015 h5game -rw-r--r-- 1 nginx nginx 708 Apr 1 2022 index.php drwxr-xr-x 2 nginx nginx 110 Apr 1 2022 install -rw-r--r-- 1 nginx nginx 49521 Apr 1 2022 install.php -rw-r--r-- 1 nginx nginx 14974 Apr 1 2022 LICENSE.txt -rw-r--r-- 1 nginx nginx 349 Oct 8 15:40 mysqli.php drwxr-xr-x 5 nginx nginx 50 Apr 1 2022 usr drwxr-xr-x 6 nginx nginx 59 Apr 1 2022 var drwxr-xr-x 14 nginx nginx 279 Sep 3 2018 WeCenter322
3.修改页面归属
sed -i '/^user/c user = nginx' /etc/php-fpm.d/www.conf sed -i '/^group/c group = nginx' /etc/php-fpm.d/www.conf
4.进入数据库并创建数据库
[root@web01 ~]# mysql -uroot -pZMJ123.com mysql> create database typecho; Query OK, 1 row affected (0.00 sec)
5 重启nginx,php-fpm服务
systemctl restart nginx php-fpm