Nexusインストール(Linux環境)

4186 ワード

一、環境準備
インストールJDK 1.7
二、Nexus圧縮ファイルのダウンロード
ダウンロード先:http://www.sonatype.org/nexus/archived/

Nexus 安装(Linux 环境)_第1张图片


三、圧縮ファイルのアップロード
Nexus 安装(Linux 环境)_第2张图片
四、解凍ファイル

Nexus 安装(Linux 环境)_第3张图片
五、環境変数の配置
1、臨時配置
コマンド:export RUN_AS_USER=root

2、永久配置
コマンド:vi/etc/profile
export RUN_AS_USER=root



六、構成ファイルの有効化
コマンド:source/etc/profile


七、Nexusサービスの起動
コマンド:cd/usr/local/nexus-2.5.1-01/bin
コマンド:./nexus start

Nexus 安装(Linux 环境)_第4张图片
八、Nexus構成の修正
コマンド:cd/usr/local/nexus-2.5.1-01/conf/
コマンド:vim nexus.properties

#UI      
application-port=8081  
application-host=0.0.0.0  
nexus-webapp=${bundleBasedir}/nexus  
nexus-webapp-context-path=/nexus  
  
# Nexus section  
nexus-work=${bundleBasedir}/../sonatype-work/nexus  
runtime=${bundleBasedir}/nexus/WEB-INF

九、Nexusログの監視
コマンド:cd/usr/local/nexus-2.5.1-01/logs/
コマンド:tail-f wrapper.log


十、オープンポート(プロファイル:アプリケーションポート)
コマンド:firewall-cmd--zone=public--add-port=8081/tcp--permanent
十一、ポートの再起動
コマンドこまんど:firewall-cmd--reload
十二、テスト
アクセス先:http://192.168.206.153:8081/nexus
Nexus 安装(Linux 环境)_第5张图片