您的位置:首页 > 大数据

大数据平台搭建之nexus私服

2015-06-01 18:42 253 查看

System Requirements

Processors: 2 Core 2.5Ghz+

Available Space: 100G+ depending on number and size of artifacts

Available RAM: 4Gb+

JRE Versions: jdk7u60
Reference: https://support.sonatype.com/entries/24901442-Sonatype-Nexus-System-Requirements
Steps for installing Nexus repository manager in RedHat machine

1. Downloading Nexus

Nexus Open Source distribution was used for this installation test, while a Nexus Professional is also available.To download the latest Nexus Open Source distribution, go to http://www.sonatype.org/nexus/go and
choose Nexus (TGZ) or Nexus (ZIP) . (
wget www.sonatype.org
/downloads/<Nexusvesion>
form
your machine)

At this time the nexus-2.11.2-06-bundle.zip file was downloaded

2. Installing Nexus

Copy the file to a directory other than your local (e.g., /usr/local) and unzip the ZIP file:
$ sudo cp nexus-2.11.2-06-bundle.tar.gz /usr/local

$ unzip nexus-2.11.2-06-bundle.zip

Is recommendable to create a symbolic link (usr/local/nexus) to the specific nexus version directory. It makes simple to upgrade to a newer version when available
$ sudo ln -s nexus-2.11.2-06 nexus

Although it isn’t required, you may want to set an environment variable NEXUS_HOME in your environment that points to the installation directory of Nexus
NEXUS_HOME="/usr/local/nexus"


3. Running Nexus

To Start Nexus in a Linux machine use:
cd /usr/local/nexus
./bin/nexus console

When executed you should see a feedback message and then you can follow the startup process viewing the log file changes.
Starting Nexus Repository Manager...
Started Nexus Repository Manager.
$ tail -f logs/wrapper.log

At this point, Nexus will be running and listening on all IP addresses of the current host on port 8081. To use Nexus,start a web browser and type in the URL
http://hostname:8081/nexus

When installing Nexus for production usage you should configure Nexus as a service following the instructions here

For more details about Nexus management, refer to the Sonatype-Nexus documentation

4. Trouble Shooting:

"java.net.UnknownHostException: n085"

Add following in /etc/hosts:

10.20.69.85 n085
nexus is started successfully, but could not open http://10.20.69.85:8081/nexus

caused by iptables setting, fix commands:

-> iptables -I INPUT -p tcp --dport 8081 -jACCEPT

-> iptables -I INPUT -p udp --dport 8081 -jACCEPT

-> service iptables save

-> service iptables restart

Or "service iptables stop" directely

5. Following add nexus as service from Sonatype-Nexus documentation

6. Testing via Adding neo4j reposiroty:

Add neo4j in UI
mv neo4j org directory to /usr/local/nexus/sonatype-work/nexus/storage/neo4j
Could see neo4j repo:
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  nexus