当前位置:网站首页>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
边栏推荐
- Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
- Spark case - wordcount
- Unity摄像头跟随鼠标旋转
- Leetcode006 -- find the longest common prefix in the string array
- Flink's important basics
- Brushless motor drive scheme based on Infineon MCU GTM module
- [paper reading] [3D target detection] point transformer
- Unity camera rotation with sliding effect (rotation)
- Gut liver axis: host microbiota interaction affects hepatocarcinogenesis
- Coinbase:关于跨链桥的基础知识、事实和统计数据
猜你喜欢
![[paper reading] [3D object detection] voxel transformer for 3D object detection](/img/a2/9f66789cc12fad99491309717cf418.png)
[paper reading] [3D object detection] voxel transformer for 3D object detection

520. Detect capital letters

【论文阅读】【3d目标检测】point transformer

補:注解(Annotation)

Shanghai Hangxin technology sharing 𞓜 overview of safety characteristics of acm32 MCU

Iron and intestinal flora

Chapter 4 - understanding standard equipment documents, filters and pipelines

那些年我面试过的Android开发岗总结(附面试题+答案解析)

Improving 3D object detection with channel wise transformer

What is a data island? Why is there still a data island in 2022?
随机推荐
补:注解(Annotation)
Supplement: Annotation
Basic use of shell WC (counting the number of characters)
Leetcode005 -- delete duplicate elements in the array in place
数据孤岛是什么?为什么2022年仍然存在数据孤岛?
Coinbase: basic knowledge, facts and statistics about cross chain bridge
Spark small case - RDD, broadcast
IDE idea automatic compilation and configuration of on update action and on frame deactivation
[timing] empirical evaluation of general convolution and cyclic networks for sequence modeling based on TCN
AWS eks add cluster user or Iam role
基于英飞凌MCU GTM模块的无刷电机驱动方案开源啦
leetcode005--原地删除数组中的重复元素
Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
针对NFT的网络钓鱼
电钻、电锤、电镐的区别
Leetcode008 -- implement strstr() function
补充番外14:cmake实践项目笔记(未完待续4/22)
Eksctl deploying AWS eks
阿里十年技术专家联合打造“最新”Jetpack Compose项目实战演练(附Demo)
Differences among electric drill, electric hammer and electric pick