一.确保有jdk,tomcat和mysql环境
二.新建jpress数据库,新建jpress用户并赋予所有权限
三.将jpress的war上传到tomcat/apache-tomcat-8.5.70/webapps,具体根据你的实际tomcat安装路径为准,上传完成后他会自己解包
四.到浏览器完成安装向导
一.确保有jdk,tomcat和mysql环境
[root@localhost ~]# java -version
java version "1.8.0_371"
Java(TM) SE Runtime Environment (build 1.8.0_371-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.371-b11, mixed mode)
[root@localhost ~]# /tomcat/apache-tomcat-8.5.70/bin/version.sh
Using CATALINA_BASE: /tomcat/apache-tomcat-8.5.70
Using CATALINA_HOME: /tomcat/apache-tomcat-8.5.70
Using CATALINA_TMPDIR: /tomcat/apache-tomcat-8.5.70/temp
Using JRE_HOME: /jdk/jdk1.8.0_371
Using CLASSPATH: /tomcat/apache-tomcat-8.5.70/bin/bootstrap.jar:/tomcat/apache-tomcat-8.5.70/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Server version: Apache Tomcat/8.5.70
Server built: Aug 9 2021 16:17:14 UTC
Server number: 8.5.70.0
OS Name: Linux
OS Version: 3.10.0-1160.el7.x86_64
Architecture: amd64
JVM Version: 1.8.0_371-b11
JVM Vendor: Oracle Corporation
[root@localhost ~]# mysql --version
mysql Ver 14.14 Distrib 5.7.43, for Linux (x86_64) using EditLine wrapper
[root@localhost ~]#
二.新建jpress数据库,新建jpress用户并赋予所有权限
mysql8.0 [(none)]>create database jpress default character set utf8;
Query OK, 1 row affected (0.00 sec)
mysql8.0 [(none)]>create user 'jpress'@'localhost' identified by 'Jpress@317418';
Query OK, 0 rows affected (0.01 sec)
mysql8.0 [(none)]>grant all privileges on *.* to 'jpress'@'localhost';
Query OK, 0 rows affected (0.00 sec)
mysql8.0 [(none)]>flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql8.0 [(none)]>show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| SLB |
| jpress |
| mysql |
| performance_schema |
| sys |
+--------------------+
6 rows in set (0.01 sec)
三.将jpress的war上传到tomcat/apache-tomcat-8.5.70/webapps,具体根据你的实际tomcat安装路径为准,上传完成后他会自己解包
[root@localhost webapps]# ll
total 20316
drwxr-x--- 15 root root 4096 Aug 7 19:02 docs
drwxr-x--- 7 root root 99 Aug 7 19:02 examples
drwxr-x--- 6 root root 79 Aug 7 19:02 host-manager
drwxr-x--- 7 root root 102 Aug 7 19:07 jpress-web-newest
-rw-r--r-- 1 root root 20797013 Aug 5 11:58 jpress-web-newest.war
drwxr-x--- 6 root root 114 Aug 7 19:02 manager
drwxr-x--- 3 root root 223 Aug 7 19:02 ROOT
四.到浏览器完成安装向导
使用在数据库里创建的用户登录
定义用户名和密码
安装完成后会自动刷新,如果没有变化就到设备上去重启tomcat
到admin下去进行管理员登录
就可以进行管理了