新增说明文件;新增Docker、Redis、Tomcat示例
This commit is contained in:
committed by
cloud-init created default user
parent
7f1ab899dc
commit
c02391ca11
15
examples/redis.service
Normal file
15
examples/redis.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=Redis Server
|
||||
Documentation=https://redis.io
|
||||
After=network-online.target firewalld.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/opt/redis/bin/redis-server /opt/redis/redis.conf
|
||||
ExecReload=/opt/redis/bin/redis-server -s reload
|
||||
ExecStop=/opt/redis/bin/redis-server -s stop
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user