系统相关
首页 > 系统相关> > Linux-部署基于JAVA的博客系统 JPress

Linux-部署基于JAVA的博客系统 JPress

作者:互联网

 设备

centos7  10.0.0.17   tomcat服务器

centos7  10.0.0.57   MySQL服务器   MySQL5.7  ,jpress只支持5.6和5.7

 

tomcat服务器配置

下载上传jpress安装包

下载地址:http://www.jpress.io/download

 

[root@centos7-liyj ~]#ll
total 221604
-rw-------. 1 root root      1580 Apr 18 18:20 anaconda-ks.cfg
-rw-r--r--  1 root root  11489338 Jun 12 18:01 apache-tomcat-9.0.48.tar.gz
-rw-r--r--  1 root root      3108 Jun 12 18:02 install_tomcat.sh
-rw-r--r--  1 root root 144935989 Sep  1  2021 jdk-8u291-linux-x64.tar.gz
-rw-r--r--  1 root root  70483256 Sep  1  2021 jpress-v4.0.7.war

将此文件复制到webapps目录下

[root@centos7-liyj ~]#cp jpress-v4.0.7.war /usr/local/tomcat/webapps/
[root@centos7-liyj ~]#ll /usr/local/tomcat/webapps/
total 68836
drwxr-x--- 15 tomcat tomcat     4096 Jun 12 18:02 docs
drwxr-x---  7 tomcat tomcat       99 Jun 12 18:02 examples
drwxr-x---  6 tomcat tomcat       79 Jun 12 18:02 host-manager
drwxr-x---  6 tomcat tomcat       86 Jun 13 08:56 jpress-v4.0.7      #提取要用的页面文件
-rw-r--r--  1 root   root   70483256 Jun 13 08:56 jpress-v4.0.7.war  #自动解压Java格式的压缩包文件
drwxr-x---  6 tomcat tomcat      114 Jun 12 18:02 manager
drwxr-x---  3 tomcat tomcat      241 Jun 13 08:48 ROOT
[root@centos7-liyj ~]#cd /usr/local/tomcat/webapps/[root@centos7-liyj /usr/local/tomcat/webapps]#ln -s jpress-v4.0.7 jpress   #创建软连接方便访问
[root@centos7-liyj /usr/local/tomcat/webapps]#ll
total 68836
drwxr-x--- 15 tomcat tomcat     4096 Jun 12 18:02 docs
drwxr-x---  7 tomcat tomcat       99 Jun 12 18:02 examples
drwxr-x---  6 tomcat tomcat       79 Jun 12 18:02 host-manager
lrwxrwxrwx  1 root   root         13 Jun 13 09:03 jpress -> jpress-v4.0.7
drwxr-x---  6 tomcat tomcat      111 Jun 13 09:02 jpress-v4.0.7
-rw-r--r--  1 root   root   70483256 Jun 13 08:56 jpress-v4.0.7.war
drwxr-x---  6 tomcat tomcat      114 Jun 12 18:02 manager
drwxr-x---  3 tomcat tomcat      241 Jun 13 08:48 ROOT

 

数据库服务配置

创建用户并授权,创建数据库

mysql> create user jpress@'10.0.0.%' identified by '123456';
Query OK, 0 rows affected (0.03 sec)

mysql> create database jpress;
Query OK, 1 row affected (0.00 sec)

mysql> grant all on jpress.* to jpress@'10.0.0.%';
Query OK, 0 rows affected (0.01 sec)

 

浏览器初始化配置

 

 

 

 

 

 

 

 

 

标签:JAVA,tomcat,--,JPress,drwxr,Linux,Jun,jpress,root
来源: https://www.cnblogs.com/lyj1023/p/16369728.html