日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux 查看nexus状态,在linux上搭建nexus私服(CentOS7)

發布時間:2025/3/20 linux 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 linux 查看nexus状态,在linux上搭建nexus私服(CentOS7) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1.下載nexus安裝包,下載地址

2.上傳/usr/local后解壓文件,目錄結構如下:

偷懶,直接把解壓后的sonatype-work文件移動nexus目錄下

3.添加nexus組和用戶

groupadd nexus

useradd -g nexus -m nexus

passwd nexus

密碼設置為nexus123

4.修改nexus目錄歸屬權限

chown -R nexus:nexus nexus

5.開放防火墻,默認是8081端口

firewall-cmd --zone=public --permanent --add-port=8081/tcp

service firewalld restart

6.修改nexus配置(/usr/local/nexus/conf/nexus.properties),修改nexus的host和工作目錄

7.啟動nexus

切換到nexus用戶,進入目錄/usr/local/nexus/bin,執行如下命令啟動service:

./nexus start

8.查看啟動日志

tail -f ../logs/wrapper.log

a.拷貝文件

$NEXUS_HOME/bin/nexus?to?/etc/init.d/nexus

b給文件賦執行權限,并分配給root用戶

chmod?755?/etc/init.d/nexus

chown root /etc/init.d/nexus

c修改nexus文件(/etc/init.d/nexus)

修改NEXUS_HOME為絕對路徑:NEXUS_HOME="/usr/local/nexus"

修改RUN_AS_USER運行用戶為nexus

d.添加nexus為啟動服務

cd /etc/init.d

$ chkconfig--add nexus

$ chkconfig--levels 345nexus on

$ service nexus start

Starting Nexus Repository Manager Pro...

$ tail-f /usr/local/nexus/logs/wrapper.log

10.在瀏覽器中訪問私服管理界面:

總結

以上是生活随笔為你收集整理的linux 查看nexus状态,在linux上搭建nexus私服(CentOS7)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。