Installing Nexus
# cd /usr/local/src
# wget http://www.sonatype.org/downloads/nexus-latest-bundle.zip
# unzip nexus-2.4.0-09-bundle.zip
# mv nexus-2.4.0-09 /usr/local
# mv sonatype-work /usr/local
# cd /usr/local
# ln -s nexus-2.4.0-09 nexus
Starting Nexus
# cd /usr/local/nexus
# ./bin/nexus start
****************************************
WARNING - NOT RECOMMENDED TO RUN AS ROOT
****************************************
If you insist running as root, then set the environment variable RUN_AS_USER=root before running this script.
nexus? root ???? ???? ??? ???? ????.
user ? ???? ?????.
user ? JAVA_HOME ? JAVA_HOME/bin ? path? ???? ??? ???.
# cd /usr/local
# chown -R ggamzzak: nexus-2.4.0-09/ sonatype-work/
# su - ggamzzak
$ cd /usr/local/nexus
$ ./bin/nexus start
Starting Nexus OSS...
Started Nexus OSS.
$ ./bin/nexus status
Nexus OSS is running (23518).
$ ./bin/nexus stop
Stopping Nexus OSS...
Stopped Nexus OSS.
Running as a Service
.
root? ???? ????? RUN_AS_USER ??? ?? ??? user ??? ?????.
NEXUS_HOME ??? ????? ??? ???.
# cp /usr/local/nexus/bin/nexus /etc/init.d
# cd /etc/init.d/
# vi nexus
NEXUS_HOME="/usr/local/nexus"
RUN_AS_USER=ggamzzak
# chkconfig --add nexus
# chkconfig --levels 35 nexus on
# ./nexus start
Starting Nexus OSS...
Started Nexus OSS.
.
http://domain:8081/nexus (id: admin / pw: admin123)
8081??, ??? ??? ?????.
<NEXUS_HOME>/conf/nexus.properties ???? ?????.
nexus? ?? ??? <NEXUS_HOME>/logs/wrapper.log ?????.
联系客服