您现在的位置是:首页 > 日记日记

centos 安装ZrLog

薄荷2022-06-02【日记】1人已围观

简介centos 安装ZrLog

安装mysql

yum -y install mysql57-community-release-el7-10.noarch.rpm

yum -y install mysql-community-server

systemctl start mysqld.service

systemctl status mysqld.service

grep "password" /var/log/mysqld.log

mysql -uroot -p

ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password';

SHOW VARIABLES LIKE 'validate_password%';

set global validate_password_policy=LOW;

set global validate_password_length=6;

grant all privileges on *.* to 'root'@'192.168.0.1' identified by 'password' with grant option;

CREATE DATABASE wordpress;

mysql> flush privileges;

安装jdk

yum list java*

yum install java-1.8.0-openjdk.x86_64 -y

java -version

安装tomcat

wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.63/bin/apache-tomcat-9.0.63.tar.gz --no-check-certificate

tar -zxvf apache-tomcat-9.0.63.tar.gz

修改server.xml 通过80端口访问

或者

安装nginx

yum install nginx

rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm

yum install nginx

更改nginx配置文件添加

location / {

proxy_pass http://localhost:8080/;

client_max_body_size 128m;

}

service nginx start

nginx -v

systemctl status nginx

安装zrlog

wget http://dl.zrlog.com/release/zrlog-1.7.1-baaecb9-release.war

mv zrlog-1.7.1-baaecb9-release.war /tomcat/webapps

Tags: