Nexusインストール(Linux環境)
4186 ワード
一、環境準備
インストールJDK 1.7
二、Nexus圧縮ファイルのダウンロード
ダウンロード先:http://www.sonatype.org/nexus/archived/
三、圧縮ファイルのアップロード
四、解凍ファイル
五、環境変数の配置
1、臨時配置
コマンド:export RUN_AS_USER=root
2、永久配置
コマンド:vi/etc/profile
六、構成ファイルの有効化
コマンド:source/etc/profile
七、Nexusサービスの起動
コマンド:cd/usr/local/nexus-2.5.1-01/bin
コマンド:./nexus start
八、Nexus構成の修正
コマンド:cd/usr/local/nexus-2.5.1-01/conf/
コマンド:vim nexus.properties
九、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
インストールJDK 1.7
二、Nexus圧縮ファイルのダウンロード
ダウンロード先:http://www.sonatype.org/nexus/archived/
三、圧縮ファイルのアップロード
四、解凍ファイル
五、環境変数の配置
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構成の修正
コマンド: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