一、下载安装包
yum install nginx php-fpm php-gd php-freetype mariadb-server -y
systemctl restart nginx
systemctl restart php-fpm
systemctl restart mariadb
systemctl enable nginx
systemctl enable php-fpm
systemctl enable mariadb
二、数据库配置
create database wecenter character set utf8 collate utf8_bin;
grant all privileges on wecenter.* to mediawiki@localhost identified by 'wecenter';
grant all privileges on wecenter.* to mediawiki@'%' identified by 'wecenter';
FLUSH PRIVILEGES;
三、上传wecenter的安装包,解压至/usr/share/nginx/html/wecenter下
tar xf WeCenter_3-2-2.tar.gz -C /usr/share/nginx/html/wecenter
chown -R nginx.nginx /usr/share/nginx/html/wecenter
四、浏览器访问ip/wecenter
![](https://img.haomeiwen.com/i16861561/6c62e83ee4782030.png)
![](https://img.haomeiwen.com/i16861561/d69cba900ee48e4e.png)
![](https://img.haomeiwen.com/i16861561/767de5eac2e1477a.png)
![](https://img.haomeiwen.com/i16861561/21b3775f77f1cc45.png)
![](https://img.haomeiwen.com/i16861561/6aa6902e3e2607f2.png)
![](https://img.haomeiwen.com/i16861561/b565ebdc2eddcee8.png)
![](https://img.haomeiwen.com/i16861561/ec988a81c657daa8.png)
网友评论