当前位置:网站首页>SSM project deployed in Alibaba cloud
SSM project deployed in Alibaba cloud
2022-04-23 13:45:00 【One duck, one duck】
One 、 Alibaba cloud purchases servers
Two 、 Reset the instance password for the first login
Get into ESC Console
Click on i… First string in
And then restart
3、 ... and 、 download xshell and Xftp 6
Baidu download crack can
Four 、 Test connection
5、 ... and 、 Install... On the server jdk
Xshell Enter the command
yum -y install java-1.8.0-openjdk.x86_64
see Java edition :
6、 ... and 、 install MySQL(8.0)
cd /usr/local
mkdir mysql
cd mysql
wget https://repo.mysql.com//mysql80-community-release-el7-1.noarch.rpm
install yum repo File and update yum cache ;
rpm -ivh mysql80-community-release-el7-1.noarch.rpm
Execution results
Will be in /etc/yum.repos.d/ Two repo file mysql-community.repo mysql-community-source.repo
to update yum command
yum clean all
yum makecache
Use yum install MySQL
When we are using yum install mysql when ,yum The default from the yum Installation in warehouse mysql Abreast of the times GA edition ; How to choose your own version ;
You can see MySQL 5.5 5.6 5.7 Is disabled and MySQL 8.0 Is enabled ;
install
yum install mysql-community-server
Turn on MySQL service
systemctl start mysqld.service
Get the original login password MySQL
mysql After installation, a root@locahost Account , And put the initial password in /var/log/mysqld.log In file ;
cat /var/log/mysqld.log
Log in with the initial password mysql
mysql -u root -p # Will prompt for password
Change the initial password
ALTER USER 'root'@'localhost' IDENTIFIED BY ' New password !';# Pay attention to the number and type of password , At least capitalized + A lowercase letter + Symbol + Numbers
7、 ... and 、 install tomcat
Install here and the first two jdk and mysql It's different . Here is tomcat Download address , Download to local ,
https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/
Xftp6. Establish connection and pull file
xshell6 Establishing a connection is similar , Find the... You downloaded tomcat Then enter usr/local Double click !
The above is downloaded locally apache-tomcat-9.0.45.tar To the server /usr/local Under the table of contents
stay xshell Unzip in apache-tomcat
cd /usr/local
decompression
apache-tomcat-9.0.45.tar
tar xzf apache-tomcat-9.0.45.tar.gz
start-up tomcat
cd /usr/local/apache-tomcat-9.0.52/bin
./startup.sh
Open Alibaba cloud management console , Set security group
Browser Test
Database connection
You need to set the... In the server mysql In the database user Users in the table correspond to Host Change the field to % that will do . If you use... In the server Navicat Then you can directly modify the fields above , If not, use sql sentence
use mysql;
update user set Host='%' where User='root';
Successful connection
8、 ... and 、 Import project related information
Navicat Import project database
maven Project generation war file
Note that the database version of the project needs to be changed to that deployed by Alibaba cloud MySQL edition , Also put the database of the configuration file IP Change the address and password to the one deployed by Alibaba cloud MySQL Database consistency
Use Xftp6 take war Incoming server tomcat9 Below wabapps Directory
modify Tomcat Inside servlet.xml file
The above steps , Visit website : The server IP:8080/ Project name /home(home This is the landing page of the blogger project , Modify... According to your actual situation ), The visit was successful , Happily enter the user name and password , land (404??)
This is because the URL you log in and jump to should be without the project name , however tomcat You need to bring the project name to access , How to solve it ? Access to information , We know it needs to be changed tomcat Medium server.xml The path where the configuration file is found
add
<Context path="" docBase="/usr/local/apache-tomcat-9.0.52/webapps/logisticsWeb" reloadable="true" />
cd usr/local/apache-tomcat-9.0.52/conf/
vim servlet.xml
Restart tomcat
cd /usr/local/apache-tomcat-9.0.52/bin
./shutdown.sh
ps -ef|grep java
./startup.sh
Browser access
Visit website : The server IP:8080/ Project name /home, success OK
版权声明
本文为[One duck, one duck]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230558023750.html
边栏推荐
- Static interface method calls are not supported at language level '5'
- Oracle defines self incrementing primary keys through triggers and sequences, and sets a scheduled task to insert a piece of data into the target table every second
- [barycentric coordinate interpolation, perspective correction interpolation] principle and usage opinions
- What does the SQL name mean
- Error 403 in most cases, you or one of your dependencies are requesting
- [Video] Bayesian inference in linear regression and R language prediction of workers' wage data | data sharing
- Oracle clear SQL cache
- Dolphin scheduler integrates Flink task pit records
- GDB的使用
- Window function row commonly used for fusion and de duplication_ number
猜你喜欢
[barycentric coordinate interpolation, perspective correction interpolation] principle and usage opinions
Isparta is a tool that generates webp, GIF and apng from PNG and supports the transformation of webp, GIF and apng
PG SQL intercepts the string to the specified character position
[point cloud series] neural opportunity point cloud (NOPC)
[Video] Bayesian inference in linear regression and R language prediction of workers' wage data | data sharing
Opening: identification of double pointer instrument panel
Detailed explanation of redis (Basic + data type + transaction + persistence + publish and subscribe + master-slave replication + sentinel + cache penetration, breakdown and avalanche)
Dolphin scheduler scheduling spark task stepping record
The interviewer dug a hole for me: what's the use of "/ /" in URI?
Oracle job scheduled task usage details
随机推荐
JUC interview questions about synchronized, ThreadLocal, thread pool and atomic atomic classes
What does the SQL name mean
Three characteristics of volatile keyword [data visibility, prohibition of instruction rearrangement and no guarantee of operation atomicity]
[indicators] precision, recall
[barycentric coordinate interpolation, perspective correction interpolation] principle and usage opinions
Parameter comparison of several e-book readers
Processing of ASM network not automatically started in 19C
Oracle generates millisecond timestamps
Troubleshooting of expdp export error when Oracle table has logical bad blocks
[point cloud series] Introduction to scene recognition
Software test system integration project management engineer full truth simulation question (including answer and analysis)
Bottomsheetdialogfragment + viewpager + fragment + recyclerview sliding problem
Innobackupex incremental backup
JS compares different elements in two arrays
Processbuilder tool class
Dolphin scheduler integrates Flink task pit records
Test on the time required for Oracle to delete data with delete
[point cloud series] pointfilter: point cloud filtering via encoder decoder modeling
Test the time required for Oracle library to create an index with 7 million data in a common way
Short name of common UI control