标签:mysq iad local 下载 压缩包 改名 network gre 数据
官方地址:
mkdir /app/ tar xf jdk-8u221-linux-x64.tar.gz -C /app/ ln -s /app/jdk1.8.0_221/ /app/jdk
2. 全局环境变量
export JAVA_HOME=/app/jdk export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH export CLASSPATH=.$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jarq . /etc/profile
3. 测试版本
[root@ntp /app]# java -version java version "1.8.0_221" Java(TM) SE Runtime Environment (build 1.8.0_221-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)
tar xf apache-tomcat-8.5.50.tar.gz -C /app ln -s /app/apache-tomcat-8.5.50/ /app/tomcat echo "export TOMCAT_HOME=/app/tomcat" >> /etc/profile . /etc/profile
2. 检查tomcat变量是否添加完成,执行命令
/app/tomcat/bin/version.sh --查看版本 /app/tomcat/bin/startup.sh --启动tomcat #查看8080端口是否开启 [root@ntp /app]# netstat -lntup | grep java tcp6 0 0 :::8009 :::* LISTEN 25859/java tcp6 0 0 :::8080 :::* LISTEN 25859/java tcp6 0 0 127.0.0.1:8005 :::* LISTEN 25859/java
cd /app/tomcat/webapps rm -rf * #将zrlog.tar 复制到webapps/目录下改名为ROOT.TAR wget http://dl.zrlog.com/release/zrlog-2.1.7-768d7a6-release.war cp zrlog-2.1.7-768d7a6-release.war /app/tomcat/webapps/ROOT.war
yum install mariadb mariadb-server -y systemctl start mariadb systemctl enable mariadb
2. 创建数据库
mysql create database zrlog character set utf8 collate utf8_general_ci; grant all on zrlog.* to ‘zrlog‘@‘localhost‘ identified by ‘123456‘;
配置登录信息
最后结果
标签:mysq iad local 下载 压缩包 改名 network gre 数据
原文地址:https://www.cnblogs.com/Mercury-linux/p/12275044.html