大数据平台搭建之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 andchoose 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:
相关文章推荐
- maven解决第三方jar部署问题
- Maven的使用,Nexus建立本地仓库以及Eclipse导入Maven项目(一): 准备篇
- Maven仓库之安装Nexus
- nexus 手册
- Nexus 1000v安装与配置
- Nexus 1000v安装与配置
- windows系统下开发环境搭建(一)maven安装
- 严澜:创业公司如何实施敏捷开发
- Force HTTPS in Apache2
- nexus添加新仓库
- Nexus搭建Maven私服
- Sonatype Nexus
- 使用Nexus管理maven仓库,setting文件理解
- [Maven]Nexus 安装与配置
- nexus安装使用
- nexus S 刷4.4
- android 4.4 源码编译--for--nexus5
- Nexus 7 二代 刷机
- lib仓库Nexus入门
- Nexus 7 不能连接到电脑进行Debug