Use the official website installation package for offline deployment
This article explains the applicable scenarios, operation steps, and key configurations of offline deployment to help users complete environment deployment and verification.
Download the installation package or compile the source code
Official website address: https://zhiqingyun.isxcode.com

Install java environment offline
Take CentOS7.9 system as an example
Click to download the official website OpenJdk
# 推送到服务器
scp zulu17.66.19-ca-jdk17.0.19-linux_x64.tar.gz root@47.116.163.22:/tmp/
⚠️ NOTE
Be sure to configure the JAVA_HOME environment variable in ~/.bashrc
tar -vzxf /tmp/zulu17.66.19-ca-jdk17.0.19-linux_x64.tar.gz -C /opt
ln -s /opt/zulu17.66.19-ca-jdk17.0.19-linux_x64 /opt/java
tee -a ~/.bashrc <<-'EOF'
export JAVA_HOME=/opt/java
export PATH=$PATH:$JAVA_HOME/bin
EOF
source ~/.bashrc
java -version
⚠️ NOTE
The maximum number of open files on the server. The default is 1024. If it is too small, the job execution speed will slow down. It is recommended to change it to 65535.
# 临时配置方式
ulimit -n 65535
Upload and unzip the installation package
# 上传
scp zhiqingyun.tar.gz root@47.116.163.22:/tmp/
# 解压到/opt下
tar -vzxf /tmp/zhiqingyun.tar.gz -C /opt
Change administrator login password
vim /opt/zhiqingyun/conf/application-local.yml
server:
port: 80 # 修改端口号
isx-app:
admin-passwd: admin1234 # 修改管理员密码
Start a project
bash /opt/zhiqingyun/bin/start.sh
Visit project
- Access project: http://47.116.163.22
- Administrator account:
admin - Administrator password:
admin1234
Configure Zhiqingyun to start automatically at boot (optional)
chmod a+x /opt/zhiqingyun/bin/start.sh
chmod a+x /opt/zhiqingyun/bin/stop.sh
Configure the startup file
vim /usr/lib/systemd/system/zhiqingyun.service
Configure the startup script path, pid file path and startup user
[Unit]
Description=Zhiqingyun Service unit Configuration
After=network.target
[Service]
Type=forking
# 添加工作目录
WorkingDirectory=/opt/zhiqingyun
# 添加 JAVA_HOME 和完整 PATH
Environment="JAVA_HOME=/opt/java"
Environment="PATH=/opt/java/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
ExecStart=/opt/zhiqingyun/bin/start.sh --print-log="false"
ExecStop=/opt/zhiqingyun/bin/stop.sh
ExecReload=/opt/zhiqingyun/bin/start.sh --print-log="false"
PIDFile=/opt/zhiqingyun/zhiqingyun.pid
KillMode=none
Restart=always
User=root
Group=root
[Install]
WantedBy=multi-user.target
Reload service
systemctl daemon-reload
Set up auto-start at power on
systemctl enable zhiqingyun
Related operation commands
# 启动至轻云
systemctl start zhiqingyun
# 查看至轻云状态
systemctl status zhiqingyun
# 停止至轻云
systemctl stop zhiqingyun
# 重启至轻云
systemctl restart zhiqingyun
