当前位置:网站首页>Set up a personal blog of jpress
Set up a personal blog of jpress
2022-04-23 06:44:00 【Chshyz】
Build a personal blog
install tomcat
[root@solo ~]# yum install tomcat tomcat-webapps tomcat-admin-webapps -y
Loaded plug-in :fastestmirror
Determining fastest mirrors
* base: mirrors.ustc.edu.cn
* extras: mirrors.163.com
* updates: mirrors.aliyun.com
base | 3.6 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/4): extras/7/x86_64/primary_db | 232 kB 00:00:00
(2/4): base/7/x86_64/group_gz | 153 kB 00:00:00
(3/4): updates/7/x86_64/primary_db | 7.1 MB 00:00:03
(4/4): base/7/x86_64/primary_db | 6.1 MB 00:00:09
Resolving dependencies
[root@jpress ~]# systemctl restart tomcat

install MySQL
Please refer to this article
[root@jpress ~]# mysql -u root -p 5072e1f5
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[root@jpress ~]# mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
- The key is always wrong , That's so annoying ( Don't do this in the production environment )
[root@jpress ~]# vi /etc/my.cnf
# Add a line
skip-grant-tables
[root@jpress mysql]# service mysql restart
Shutting down MySQL.. SUCCESS!
Starting MySQL. SUCCESS!
[root@jpress mysql]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.48 MySQL Community Server (GPL)
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> quit
Bye
install jpress
- Command line download
[root@jpress ~]# wget https://gitee.com/JPressProjects/jpress/raw/master/docker-compose.yml
--2021-04-18 16:59:05-- https://gitee.com/JPressProjects/jpress/raw/master/docker-compose.yml
Resolving host gitee.com (gitee.com)... 180.97.125.228
on connection gitee.com (gitee.com)|180.97.125.228|:443... Connected .
- Download what you need war package , Pull down search war package ( Official website )

- All in all ( I think down to the local , It's better to unzip it and upload it to the server )
[root@jpress ~]# ll
Total usage 89496
-rw-------. 1 root root 1285 4 month 17 11:22 anaconda-ks.cfg
drwxr-xr-x. 6 root root 86 4 month 20 14:50 jpress
Whether decompressed or not , All will jpress Of war The bag moves to /var/lib/tomcat/webapps in
[root@jpress webapps]# ll
Total usage 70004
drwxr-xr-x. 8 tomcat tomcat 127 4 month 20 13:38 examples
drwxr-xr-x. 5 root tomcat 87 4 month 20 13:38 host-manager
-rw-r--r--. 1 root root 71677863 4 month 20 15:28 jpress-v3.3.0.war
drwxr-xr-x. 5 root tomcat 103 4 month 20 13:38 manager
drwxr-xr-x. 3 tomcat tomcat 4096 4 month 20 13:38 ROOT
drwxr-xr-x. 5 tomcat tomcat 86 4 month 20 13:38 sample
Make sure /usr/share/tomcat/webapps There are decompressed jpress Of war package (jpress-v3.3.0)
[root@jpress ~]# cd /usr/share/tomcat/
[root@jpress tomcat]# ll
Total usage 0
drwxr-xr-x. 2 root root 76 4 month 20 13:38 bin
lrwxrwxrwx. 1 root tomcat 11 4 month 20 13:38 conf -> /etc/tomcat
lrwxrwxrwx. 1 root tomcat 22 4 month 20 13:38 lib -> /usr/share/java/tomcat
lrwxrwxrwx. 1 root tomcat 15 4 month 20 13:38 logs -> /var/log/tomcat
lrwxrwxrwx. 1 root tomcat 22 4 month 20 13:38 temp -> /var/cache/tomcat/temp
lrwxrwxrwx. 1 root tomcat 23 4 month 20 13:38 webapps -> /var/lib/tomcat/webapps
lrwxrwxrwx. 1 root tomcat 22 4 month 20 13:38 work -> /var/cache/tomcat/work
[root@jpress tomcat]# cd webapps
[root@jpress webapps]# ll
Total usage 90248
drwxr-xr-x. 8 tomcat tomcat 127 4 month 20 13:38 examples
drwxr-xr-x. 5 root tomcat 87 4 month 20 13:38 host-manager
drwxr-xr-x. 6 tomcat tomcat 86 4 month 20 15:28 jpress-v3.3.0
-rw-r--r--. 1 root root 71677863 4 month 20 15:28 jpress-v3.3.0.war
-rw-r--r--. 1 root root 20729792 4 month 20 15:33 jpress-web-newest.war
drwxr-xr-x. 5 root tomcat 103 4 month 20 13:38 manager
drwxr-xr-x. 3 tomcat tomcat 4096 4 month 20 13:38 ROOT
drwxr-xr-x. 5 tomcat tomcat 86 4 month 20 13:38 sample
browser :ip+8080 Port access

版权声明
本文为[Chshyz]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230547433172.html
边栏推荐
- OpenCV使用 GenericIndex 进行 KNN 搜索
- File viewing commands and user management commands
- [UDS unified diagnosis service] i. diagnosis overview (2) - main diagnosis protocols (K-line and can)
- 浮点数双精度,单精度以及半精度知识总结
- Declared as a global variable
- Eigen 学习总结
- Vs can be compiled, but there will be a red underline to indicate the problem of undefined identifiers
- 【UDS统一诊断服务】四、诊断典型服务(6)— 输入输出控制单元(0x2F)
- [UDS unified diagnosis service] i. diagnosis overview (3) - ISO 15765 architecture
- MOS管特性和导通过程
猜你喜欢
随机推荐
声明为全局变量
Shell脚本 单引号、双引号和反引号的区别
【UDS统一诊断服务】一、诊断概述(2)— 主要诊断协议(K线和CAN)
CUDA environment installation
三极管原理及特性分析
Initialization of classes and objects (constructors and destructors)
undefined reference to `Nabo::NearestNeighbourSearch
Notes on advanced points of C language 2
[opencv] use filestorage to read and write eigenvectors
Declared as a global variable
在visual stdio中运行qt程序
Generate random number
TensorFlow张量介绍
2022LDU寒假训练-程序补丁
[UDS unified diagnostic service] III. application layer protocol (1)
【UDS统一诊断服务】二、网络层协议(2)— 数据传输规则(单帧与多帧)
QT icon application
进程管理命令
[ThreadX] h743 + ThreadX + Filex migration record
基于VGG卷积神经网络的图像识别代码实现






![[UDS] unified diagnostic service (UDS)](/img/ed/8c16e4f1136fff95a829be410cab11.png)
