軟件環(huán)境
- centos6.8
- nexus3.17.0
配置
- 執(zhí)行命令:
sudo ln -s /usr/local/nexus3/nexus-3.17.0-01/bin/nexus /etc/init.d/nexus
# /usr/local/nexus3/nexus-3.17.0-01/bin/nexus是nexus的安裝目錄
- 通過 service 來啟停 nexus 服務(wù),參考如下:
service nexus status # 查看nexus服務(wù)狀態(tài)
service nexus start #啟動(dòng)服務(wù)
service nexus stop #停止服務(wù)
查看nexus服務(wù)狀態(tài)、啟動(dòng)服務(wù)、停止服務(wù)等
3.配置 nexus 服務(wù) 開機(jī)自啟動(dòng)或者不啟動(dòng)
chkconfig nexus on/off # 設(shè)置nexus服務(wù)開機(jī)自啟動(dòng)或者開機(jī)不啟動(dòng)
4.其他配置。切記保證8081端口可通過防火墻。