当前位置:网站首页>Teach you how to build the ruoyi system by Tencent cloud
Teach you how to build the ruoyi system by Tencent cloud
2022-04-23 04:42:00 【Move up】
Teach you how to build Tencent cloud RUOYI System
Lead to
1 Tencent cloud server
2 Connect liunx Tools (mobexterm Address . change free version)
3 mysql Connection tool (navicat.exe)
4 RUOYI Source code Address Front and rear separated version
5 IDEA ( compile java )
6 Visual Studio Code ( compile vue)
Tencent cloud configuration
1 Server preparation
1.1 Tencent cloud purchase address :
Tencent cloud purchase address
Just buy the cheapest one ,2022 year 1 month 2 Japan price is 38¥
1.2 To configure
Just choose the universal type

Open ports
1 to open up MySQL Port number 3306

2 Software installation
The software is installed uniformly in /usr/local/* Next
2.1 MySQL Online installation
cd To /usr/local/ perform
cd /usr/local/
yum update
download
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum update
install
yum install mysql-server
systemctl start mysqld
Run the following script file
mysql_secure_installation
prompt root password , For the initial null, Press enter to set root It's a password
Then prompt a series of questions , Choose according to your needs y perhaps n
To configure
#1. take my-default.cnf copy to /etc/my.cnf Find your own directory according to the situation
cp /usr/share/doc/mysql-community-server-5.6.31/my-default.cnf /etc/my.cnf
#2. edit /usr/my.cnf stay [client]( If not, add it yourself ) Add... Below
default-character-set = utf8
#3. edit /usr/my.cnf stay [mysqld] Add... Below
character_set_server = utf8
#4. restart MySql service This code is the same as the one used before net start mysql The effect should be the same Opening service centos7 Use the following code
systemctl restart mysql.service
#5. Reproduce connection mysql And check the code as follows :
mysql -uroot –proot
mysql>show variables like '%character%';
Allow remote login
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root';
FLUSH PRIVILEGES;
Installation configuration completed
Local nvicat Connect
2.2 Redis install
Get into cd /usr/local/
cd /usr/local/
download
wget http://download.redis.io/releases/redis-4.0.7.tar.gz
decompression redis
tar -zxvf redis-4.0.7.tar.gz
Get into src Next
cd /usr/local/redis-4.0.9/src/
perform
make all
Get into
/usr/local/redis-4.0.9/src
start-up
./redis-server
Get into
./redis-cli
2.3 ngnix install
cd /usr/local/
download
sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
install
sudo yum install -y nginx
Start stop
sudo systemctl start nginx.service
sudo systemctl enable nginx.service
see
ps -ef | grep nginx
[root@VM-24-14-centos src]# ps -ef | grep nginx
root 13190 1 0 11:00 ? 00:00:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
nginx 13191 13190 0 11:00 ? 00:00:00 nginx: worker process
root 30401 23553 0 16:39 pts/0 00:00:00 grep --color=auto nginx
To configure
vim /etc/nginx/nginx.conf
take server Whole replacement
listen 80;
server_name localhost;
location / {
root /usr/local/nginx/html/dist;
index index.html index.htm;
}
location /prod-api/ {
proxy_pass http://127.0.0.1:8080/;
}
# location
# root: According to the received resources /usr/local/nginx/html/dist Folder to find resources
# index: By default, go to the above path to find index.html perhaps index.htm
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

2.4 jdk install
baidu There are many on the, just find an installation , Search keywords 《 install CentOS Lower installation JDK》
2.5 maven
baidu There are many on the, just find an installation , Search keywords 《 install CentOS Lower installation maven 》
3 The software runs
3.1 pack java
1 download Source code https://gitee.com/y_project/RuoYi-Vue.git
2 idea Open configuration
3 skip test

4 instal

5 package

6 Check the bag

7 Upload server
stay 、usr/local/ newly build xjl
cd /usr/local/
mkdir xjl
Just drag the bag over

8 start-up
cd /usr/local/xjl/
nohup java -jar ruoyi-admin.jar &
tail -200f nohup.out

3.1 pack vue
vscode open vue
pack
npm install
npm run build:prod

The entire folder is compressed and uploaded to
/usr/local/nginx/html

decompression
cd /usr/local/nginx/html
unzip -o dist.zip
4 success

Common command summary
nginx
systemctl stop nginx
systemctl start nginx
systemctl reload nginx
mysql
service mysqld start
service mysqld stop
Problem summary
Written after installation , The problem mainly focuses on the installation linux Software aspect
It's best to use online installation
If the problem still cannot be solved, please contact me

版权声明
本文为[Move up]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220558499060.html
边栏推荐
- Luogu p1858 [multi person knapsack] (knapsack seeking the top k optimal solution)
- Jetpack 之 LifeCycle 组件使用详解
- leetcode004--罗马数字转整数
- test
- 协程与多进程的完美结合
- A new method for evaluating the quality of metagenome assembly - magista
- FAQ of foreign lead and alliance Manager
- 补充番外14:cmake实践项目笔记(未完待续4/22)
- Unity rawimage background seamlessly connected mobile
- Leetcode008 -- implement strstr() function
猜你喜欢

Phishing for NFT
![[timing] empirical evaluation of general convolution and cyclic networks for sequence modeling based on TCN](/img/c5/3b3f9cf9a39bf14a68ac100294ca6c.png)
[timing] empirical evaluation of general convolution and cyclic networks for sequence modeling based on TCN

PIP3 installation requests Library - the most complete pit sorting

Mysql50 basic exercises

Inverse system of RC low pass filter

520.检测大写字母

Key points of AWS eks deployment and differences between console and eksctl creation

/etc/bash_ completion. D directory function (the user logs in and executes the script under the directory immediately)

AWS eks add cluster user or Iam role

Youqilin 22.04 lts version officially released | ukui 3.1 opens a new experience
随机推荐
Recommended scheme of national manufactured electronic components
Go反射—Go语言圣经学习笔记
Record your own dataset with d435i, run orbslam2 and build a dense point cloud
PIP3 installation requests Library - the most complete pit sorting
Logger and zap log Library in go language
[pytoch foundation] torch Split() usage
QML进阶(五)-通过粒子模拟系统实现各种炫酷的特效
AWS eks add cluster user or Iam role
Shanghai Hangxin technology sharing 𞓜 overview of safety characteristics of acm32 MCU
做数据可视化应该避免的8个误区
Bridge between ischemic stroke and intestinal flora: short chain fatty acids
The perfect combination of collaborative process and multi process
Leetcode - > 1 sum of two numbers
华为机试--高精度整数加法
eksctl 部署AWS EKS
Practice and exploration of knowledge map visualization technology in meituan
Basic use of shell WC (counting the number of characters)
Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
2021数学建模国赛一等奖经验总结与分享
[paper reading] [3D object detection] voxel transformer for 3D object detection