Debian安装Nexus
2016-01-27 19:25
141 查看
前置条件
安装jdk (如果使用 nexus-2.6 以上版本需要jdk7)
1 apt-get install openjdk-6-jre / apt-get install openjdk-6-jdk
测试:
在命令行中打java命令 是否有效命令
备注:
安装jdk方法
apt-get install openjdk-6-jre
apt-get autoremove openjdk-6-jre
1 apt-get install openjdk-6-jre / apt-get install openjdk-6-jdk
测试:
在命令行中打java命令 是否有效命令
备注:
安装jdk方法
apt-get install openjdk-6-jre
apt-get autoremove openjdk-6-jre
安装步骤:
2. 传送至root目录下
3.解压 tar -zvxf nexus-2.5.1-bundle.tar.gz
4. cp -r /root/nexus-2.5.1-01 /usr/local
5. ln -s nexus-2.5.1-01 nexus (进行软连接 ,类似定义一个)
6. 到nexus/bin/jws/制定操作系统的目录下
7. 执行 ./nexus start
测试:
访问地址: http://192.168.1.106:8081/nexus[/quote]
测试:
访问地址: http://192.168.1.106:8081/nexus[/quote]
8.解压缩后 进入 nexus-2.10.0-02-bundle/nexus-2.10.0-02/bin/jsw/conf
9.修改wrapper.conf文件 修改 wrapper.java.command=jdk所在目录/bin/java (一定要带java,网上很多教程都没带java)
10.然后进入 cd nexus-2.10.0-02-bundle/nexus-2.10.0-02/bin 目录 执行 ./nuxus start 就可以启动nuxus啦nexus的操作:nexus { console | start | stop | restart | status | dump }
注意:
1、这时候提示:
****************************************
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.
大概意思就是要在环境配置export RUN_AS_USER=root,临时配置
在命令行下输入:
export RUN_AS_USER=root
然后执行,就不会再提示了
./nexus start
2、也可以在系统里面永久配置
vi /etc/profile 加入export RUN_AS_USER=root
3、在地址栏里面输入:http://localhost:8081/nexus
1、这时候提示:
****************************************
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.
大概意思就是要在环境配置export RUN_AS_USER=root,临时配置
在命令行下输入:
export RUN_AS_USER=root
然后执行,就不会再提示了
./nexus start
2、也可以在系统里面永久配置
vi /etc/profile 加入export RUN_AS_USER=root
3、在地址栏里面输入:http://localhost:8081/nexus
相关文章推荐
- 应用程序互相跳转
- 创建桌面快捷方式
- C++:wchar_t 和C++新增类型:char16_t char32_t
- docker安装以及私有库搭建
- Spark saveAsTextFile
- SQL三种分页方式
- show status中文详解
- 16-1-27---图解HTTP(02)
- ubuntu terminal 配色问题
- nyoj204
- [NOI2011][JZOJ2784]阿狸的打字机
- Splay hdu3487 Play with Chain
- [uwp]ImageSource和byte[]相互转换
- NPM小结
- js 和 php 判断 是否的微信和其他的网页
- using c++11 standerd in qt
- C语言学习笔记 逻辑结构关键字
- 安卓应用的界面编程(1)
- [每天一个知识点]34-职业生涯-用得着和用不着的知识
- Show Processlist