You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

135 lines
2.9 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

> Linux 一键部署包安装
> https://www.etlcloud.cn/helpDocument.html?id=648ac032c5ccee14c6641a94
> 安装包下载
> https://www.etlcloud.cn/download.html?type=5&categoryId=6371e5004071f26ef2416667
### 一、前期准备
#### 操作系统
```shell
RockyLinux 9.4
```
#### 查看$SeLinux$状态
```shell
sestatus
```
```
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Memory protection checking: actual (secure)
Max kernel policy version: 33
```
#### 关闭$Selinux$
```shell
grubby --update-kernel ALL --args selinux=0
```
#### 关闭防火墙
```shell
systemctl disable firewalld.service
systemctl stop firewalld
# 检查防火墙状态:
systemctl status firewalld
```
#### 阿里云源加速
```shell
sudo sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.sdu.edu.cn/rocky|g' \
-i.bak \
/etc/yum.repos.d/rocky-extras.repo \
/etc/yum.repos.d/rocky.repo
dnf makecache
```
#### 重启生效
```shell
reboot
```
```shell
[root@etl ~]# sestatus
SELinux status: disabled
```
### 二、下载安装包
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202410231617978.png)![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202410231617503.png)
#### 开始安装
```shell
yum install -y unzip lrzsz wget make
mkdir /usr/restcloud -p
cd /usr/restcloud
rz -be 上传
restcloud3.7.zip
unzip restcloud3.7.zip
cd restcloud_V3.7/
# 安装依赖包
wget https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/compat-openssl10-1.0.2o-3.el8.x86_64.rpm
rpm -ivh compat-openssl10-1.0.2o-3.el8.x86_64.rpm
# 执行安装包
chmod +x restcloud_install.sh
./restcloud_install.sh
```
#### 访问地址
```
http://10.10.14.214:8080/restcloud/admin/login
外网访问地址映射http://www.hzkjai.com:27004/restcloud/admin/login
用户名密码:
admin
pass
```
#### 添加授权
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202410240746944.png)
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202410240746165.png)
#### 重启$Tomcat$
```
ps -aux |grep tomcat //查看tomcat进程
kill -9 进程id //终止进程
cd /usr/tomcat/bin //进入tomcat/bin目录
./startup.sh && tail -f ../logs/catalina.out //启动tomcat并打印启动日志
```