一、下载安装包
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
image.png image.png image.png image.png image.png image.png image.png
网友评论