maven之 nexus服务器的搭建
2015-07-21 00:57
429 查看
首次安装nexus可能会出现一些问题。这里做个总结
1.下载 http://www.sonatype.org/nexus/
2.解压 目录如下
3.配置系统环境变量 ,放到path中,方便命令执行
4 如果没配置系统变量,那么我们需要通过命令进入bin文件中了
cd bin ------cd jsw ----cd windows-x86-32
看到的目录如下
5 执行命令nexus.bat
会看到
D:\download\nexus-latest-bundle\nexus-2.4.0-09\bin\jsw\windows-x86-32>nexus.bat Usage: nexus.bat { console : start : stop : restart : install : uninstall } 请按任意键继续. . . D:\download\nexus-latest-bundle\nexus-2.4.0-09\bin\jsw\windows-x86-32>nexus.bat install wrapper | nexus installed. D:\download\nexus-latest-bundle\nexus-2.4.0-09\bin\jsw\windows-x86-32>nexus.bat start wrapper | Starting the nexus service... wrapper | The nexus service was launched, but failed to start. 请按任意键继续. . .
查看日志,日志所在目录是在根目录log里
日志(wrapper.log) wrapper | Unable to execute Java command. 系统找不到指定的文件。 (0x2) wrapper | "java" -Djava.io.tmpdir=./tmp -Djava.net.preferIPv4Stack=true wrapper | Critical error: wait for JVM process failed wrapper | The nexus service was launched, but failed to start.
解决方式
修改bin\jsw\conf 下面的wrapper.conf
# Set the JVM executable # (modify this to absolute path if you need a Java that is not on the OS path) wrapper.java.command=C:\Program Files (x86)\Java\jdk1.7.0_79\bin\java.exe
结果:
D:\download\nexus-latest-bundle\nexus-2.4.0-09\bin\jsw\windows-x86-32>nexus.bat start wrapper | Starting the nexus service... wrapper | Waiting to start... wrapper | Waiting to start... wrapper | Waiting to start... wrapper | Waiting to start... wrapper | Waiting to start... wrapper | nexus started.
打开浏览器--输入浏览器地址http://127.0.0.1:8081/nexus/index.html#welcome
我们有可能会遇到这种问题二
如何解决呢(我们日常使用命令行安装一些工具的时候经常提示如下错误提示,这是上市Win7或者Win8操作系统权限的原因)
法一以Win8为例,按WIN+Q组合键调出搜索框,输入CMD,在下方弹出的命令行提示符,点击鼠标右键,选择“以管理员身份运行”
法二
另外一种通用的方法是,按组合键WIN+R调出运行窗口,输入runas /user:administrator cmd ,回车
在弹出的命令行窗口,输入你的Administrator密码即可按管理员身份运行命令了
链接 一 百度经验 http://jingyan.baidu.com/article/f0062228dc4fa6fbd3f0c80f.html
阅读更多
相关文章推荐
- 搭建Win+Nexus(maven内部服务器)
- 使用Nexus搭建maven服务器 (openSUSE 13.1)Nexus Repository Manager OSS 2.14.1-01
- nexus搭建maven私有服务器
- Linux下搭建maven服务器nexus
- 用nexus搭建maven2内部服务器
- 史上最全使用Nexus搭建Maven服务器详细配置
- sonatype nexus 搭建maven服务器
- 用Nexus来搭建本地的Maven服务器
- 使用Nexus搭建Maven内部服务器
- 使用Nexus来搭建本地的Maven服务器
- Nexus搭建Maven服务器
- 【转载】使用Nexus搭建Maven服务器详细配置
- 网上商城项目实战之使用nexus搭建maven私有服务器
- sonatype nexus 搭建maven服务器
- 08(maven+SSH)网上商城项目实战之使用nexus搭建maven私有服务器
- 08(maven+SSH)网上商城项目实战之使用nexus搭建maven私有服务器
- Maven&Nexus服务器搭建系列资料
- 使用Nexus搭建Maven局域网服务器
- 史上最全使用Nexus搭建Maven服务器详细配置
- maven 服务器搭建 -- nexus