1.下载zrlog包,并添加到虚拟机中
1)进入/opt/apache-tomcat-8.5.90/webapps目录
cd /opt/apache-tomcat-8.5.90/webapps
2)下载zrlog包
wget http://dl.zrlog.com/release/zrlog-1.7.1-baaecb9-release.war
3)重命名包
mv zrlog-1.7.1-baaecb9-release zrblog
2.创建数据库及添加权限信息
1)安装mysql
yum -y install mariadb mariadb-server
2)启动服务
systemctl start mariadb
3)进入mysql
mysql
4)创建zrblog库
create database zrblog character set utf8 collate utf8_bin;
5)创建用户wwwblog的密码为blog ,添加权限
grant all on zrblog.* to wwwblog@'%' identified by 'blog';
6)刷新
flush privileges;
3.访问浏览器
192.168.233.132:8080/zrblog