当前位置:网站首页>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
边栏推荐
- Understanding of SSH public key and private key
- 【UDS统一诊断服务】五、诊断应用示例:Flash Bootloader
- Matlab标定板角点检测原理
- [UDS unified diagnostic service] II. Network layer protocol (2) - data transmission rules (single frame and multi frame)
- 搭建openstack平台
- vs中能编译通过,但是会有红色下划线提示未定义标示符问题
- LaTeX配置与使用
- Camera calibration: key point method vs direct method
- C语言结构体指定初始化
- Programmers can also write novels
猜你喜欢
Vscode custom comments
汇编 32位无符号加法计算器
【UDS统一诊断服务】四、诊断典型服务(5)— 功能/元件测试功能单元(例行程序功能单元0x31)
2020 Jiangsu Collegiate Programming Contest-A.Array
FOC电机库 定点PID代码分析
函数的调用过程
[UDS unified diagnosis service] i. diagnosis overview (2) - main diagnosis protocols (K-line and can)
基于VGG卷积神经网络的图像识别代码实现
【UDS统一诊断服务】一、诊断概述(2)— 主要诊断协议(K线和CAN)
Collection of practical tips for C language (continuously updated)
随机推荐
cv_bridge 与opencv 版本不匹配的解决
带默认模板实参的类模板与模板模板形参的匹配
Matching between class template with default template argument and template parameter
Cross domain issues - allow origin header contains multiple values but only one is allowed
Makefile基础、常用函数及通用Makefile
【UDS统一诊断服务】三、应用层协议(2)
【UDS统一诊断服务】四、诊断典型服务(4)— 在线编程功能单元(0x34-0x38)
Notes on advanced points of C language 2
[UDS] unified diagnostic service (UDS)
[UDS unified diagnostic service] IV. typical diagnostic service (5) - function / component test function unit (routine function unit 0x31)
友元函数,友元类,类模板
Palindromic Primes
POJ-The Unique MST
Programmers can also write novels
HDU-Memory Control
vs中的多字节与unicode
日志写法(带时间)
cuda工程更换环境(电脑)后遇到的一系列编译问题
C语言的浪漫
C语言数组处理批量数据