tomcat安装jpress博客

环境准备:
jdk1.8
tomcat 8
mysql或mariadb
jpress-web-newest.war
一、下载
jdk: https://download.oracle.com/otn/java/jdk/8u212-b10/59066701cf1a433da9770636fbc4c9aa/jdk-8u212-linux-x64.tar.gz
tomcat: http://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.5.41/bin/apache-tomcat-8.5.41.tar.gz

二、上传解压jdk和tomcat包

cd /server/tools
rz  jdk-8u181-linux-x64.tar.gz
rz  jpress-web-newest.war
tar xf  jdk-8u181-linux-x64.tar.gz   -C  /usr/local
tar xf  apache-tomcat-9.0.17.tar.gz
mv  ./apache-tomcat-9.0.17  ./tomcat
mv   jpress-web-newest.war  ./tomcat/webapps/
mv tomcat    /usr/local

三、配置jdk环境变量

vim  /etc/profile
export  JAVA_HOME=/usr/local/jdk1.8.0_181
export  PATH=$JAVA_HOME\bin:$PATH:
source  /etc/profile

四、启动tomcat

cd /usr/local/tomcat/bin
./startup.sh

五、关闭防火墙并在浏览器输入http://ip:8080/jpress-web-newest访问。
图略。。。
六、创建数据库jpress

mysql   -utoot   -p123456
create   database   jpress;
grant all privileges on jpress.* to jpress@'172.16.1.%' identified by '123456';
flush privileges;
select user,authentication_string,host from mysql.user;
quit

七、访问http://ip:8080/jpress-web-newest/admin进入博客,搭建完毕!

你可能感兴趣的:(tomcat安装jpress博客)