nexus 中央倉庫
下載地址:http://www.sonatype.org/nexus/archived
下載最新版本
mkdir -p /opt/local/nexus
tar zxvf nexus-2.11.1-01-bundle.tar.gz
cp nexus-2.11.1-01-bundle /opt/local/nexus
配置環境變數
vi /etc/profile
在最下面加入
export RUN_AS_USER=root
使設定生效
source /etc/profile
進入 /opt/local/nexus/bin 目錄
啟動 ./nexus start
****************************************
WARNING - NOT RECOMMENDED TO RUN AS ROOT
****************************************
Starting Nexus OSS...
Started Nexus OSS.
訪問 http:// myip:8081/nexus
這裡為配置檔案,可修改埠,限制IP等
nexus-work=${bundleBasedir}/../sonatype-work/nexus 修改jar 包存放路徑
conf/nexus.properties