赞
踩
]#vim /usr/lib/systemd/system/nexus3.service
[Unitt]
Description=nexus service
After=network.target
[Service]
Type=forking
Environment=“JAVA_HOME=/usr/local/java/jdk1.8.0_211” ##jvm环境
ExecStart=/usr/local/nexus3/nexus-3.18.1-01/bin/nexus start ##nexus启动路径
ExecReload=/usr/local/nexus3/nexus-3.18.1-01/bin/nexus restart
ExecStop=/usr/local/nexus3/nexus-3.18.1-01/bin/nexus stop
[Install]
WantedBy=multi-user.target
:wq
]#systemctl daemon-reload
]#systemctl start nexus3.service
]#systemctl enable nexus3.service
.
.
参考:
https://www.2cto.com/kf/201803/732056.html
https://blog.csdn.net/qq6759/article/details/90264071
·
·
--这么远,那么近 遇见也是一种缘分!
--未来的道路还很遥远,希望与你并肩
--如有疑问请留言 ,欢迎一起探讨。。
`
`
`
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。