root@gemaolin:~# cd /home/gebing/tools/
root@gemaolin:/home/gebing/tools# wget http://gghui.qiniudn.com/nexus-2.2-01-bundle.tar.gz
root@gemaolin:/home/gebing/tools# tar -zxvf nexus-2.2-01-bundle.tar.gz
root@gemaolin:/home/gebing/tools# mv nexus-2.2-01 /opt
root@gemaolin:/home/gebing/tools# mv sonatype-work /opt
新建用户、工作组
root@gemaolin:/home/gebing/tools# adduser nexus
root@gemaolin:/home/gebing/tools# passwd nexus
root@gemaolin:/home/gebing/tools# groupadd nexus
root@gemaolin:/home/gebing/tools# usermod -G nexus nexus
将nexus-2.2-01、sonatype-work属性更新为nexus组、用户
root@gemaolin:/opt# chown -R nexus:nexus nexus-2.2-01
root@gemaolin:/opt# su - nexus
nexus@gemaolin:~$ cd /opt/nexus-2.2-01/bin/jsw/linux-x86-64/
nexus@gemaolin:/opt/nexus-2.2-01/bin/jsw/linux-x86-64$ ./nexus start
Starting Nexus OSS...
Started Nexus OSS.
nexus@gemaolin:/opt/nexus-2.2-01/bin/jsw/linux-x86-64$ ./nexus restart
Stopping Nexus OSS...
Stopped Nexus OSS.
Starting Nexus OSS...
Started Nexus OSS.
nexus@gemaolin:/opt/nexus-2.2-01/bin/jsw/linux-x86-64$ ./nexus stop
Stopping Nexus OSS...
Stopped Nexus OSS.
登录后,将proxy类型的仓库的down remote indexes设置为true,然后保存
将proxy类型的仓库update index