部署Ward – 简约服务器监控工具

Tags:

参考了 https://lala.im/7597.html

apt -y update
apt -y install default-jre maven

cd /data
git clone https://github.com/B-Software/Ward.git
cd Ward/
mvn clean package
cd target
java -jar ward-1.8.5.jar

# 4000是默认端口
# validate at ip:4000 

cat >  /usr/lib/systemd/system/ward.service <<EOF
[Unit]
Description=Ward server

[Service]
Type=simple
WorkingDirectory=/data/Ward/target
ExecStart=/usr/bin/java -Xms128m -Xmx256m -jar ward-1.8.5.jar
Restart=on-failure

[Install]
WantedBy=multi-user.target
EOF


systemctl start ward
systemctl enable ward
systemctl status ward

可以修改配置

Leave a Reply