私服建设(一)搭建

下载Nexus 网址:http://www.sonatype.org
解压文件nexus-2.6.4-02
修改配置文件:nexus-2.6.4-02\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=java


# 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\Java\jdk1.6.0_45\bin\java


可以执行启动命令:nexus-2.6.4-02\bin\nexus start
报错:

wrapper | OpenSCManager failed - 拒绝访问。(0x5)

查找原因 :[url]http://blog.csdn.net/ybw2011/article/details/7690710[/url]

runas /user:administrator cmd
输入密码,出现窗口再次执行命令,又出现错误
wrapper | The nexus-webapp service is not installed - 指定的服务未安装。 (0x424)
查找原因:没有安装
所以先执行 :nexus install
再执行启动: nexus start

nexus install
wrapper | nexus installed.
nexus start
E:\nexus-2.6.4-02\bin>nexus start
wrapper | Starting the nexus service...
wrapper | Waiting to start...
wrapper | Waiting to start...
wrapper | Waiting to start...
wrapper | The nexus service was launched, but failed to start.

看不到错误,查看配置文件,发现有log配置
打开配置日志:

# ********************************************************************
# Wrapper Logging Properties
# ********************************************************************
# Enables Debug output from the Wrapper.
#wrapper.debug=TRUE

# Format of output for the console. (See docs for formats)
wrapper.console.format=PM

# Log Level for console output. (See docs for log levels)
wrapper.console.loglevel=INFO

# Log file to use for wrapper output logging.
wrapper.logfile=../logs/wrapper.log

# Format of output for the log file. (See docs for formats)
wrapper.logfile.format=LPTM

# Log Level for log file output. (See docs for log levels)
wrapper.logfile.loglevel=INFO

# Maximum size that the log file will be allowed to grow to before
# the log is rolled. Size is specified in bytes. The default value
# of 0, disables log rolling. May abbreviate with the 'k' (kb) or
# 'm' (mb) suffix. For example: 10m = 10 megabytes.
#wrapper.logfile.maxsize=0

# Maximum number of rolled log files which will be allowed before old
# files are deleted. The default value of 0 implies no limit.
#wrapper.logfile.maxfiles=0

# Log Level for sys/event log output. (See docs for log levels)
#wrapper.syslog.loglevel=NONE

再次启动,同样的错误停止,找到日志位置查看日志

jvm 5 | java.lang.UnsupportedClassVersionError: org/sonatype/nexus/bootstrap/jsw/JswLauncher : Unsupported major.minor version 51.0
jvm 5 | at java.lang.ClassLoader.defineClass1(Native Method)
jvm 5 | at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
jvm 5 | at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
jvm 5 | at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
jvm 5 | at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
jvm 5 | at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
jvm 5 | at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
jvm 5 | at java.security.AccessController.doPrivileged(Native Method)
jvm 5 | at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
jvm 5 | at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
jvm 5 | at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
jvm 5 | at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
jvm 5 | Could not find the main class: org.sonatype.nexus.bootstrap.jsw.JswLauncher. Program will exit.
jvm 5 | Exception in thread "main"

升级JVM版本到1.7

# 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\Java\jdk1.7.0_45\bin\java


再次启动服务

E:\nexus-2.6.4-02\bin>nexus start
wrapper | Starting the nexus service...
wrapper | Waiting to start...
wrapper | Waiting to start...
wrapper | Waiting to start...
wrapper | Waiting to start...
wrapper | nexus started.


好像是没有问题了,试一下网址:http://localhost:8081/nexus/index.html#welcome
好了出现主界面。点击右上角login 用 admin/admin123 进行登录,左边菜单树有变化了,基本安装完成了!
软件名称: 私服发布网站管理系统 软件版本: v1.2 软件类型: 商业版 发布日期: 2015年3月3日 运行环境:PHP5 + MYSQL5 简介: 私服发布网站管理系统自发布以来,一直致力为广大私服站长及骨灰玩家提供专业的私服导航服务。 作为商业软件产品,在代码质量、运行效率、负载能力、安全等级、功能可操控性和权限严密性、效率最优化和负载能力最佳化设计等方面都在广大用户中有良好的口碑。 功能简介: 会员自助发布: 会员发布,会员发布管理,发布审核。 架构轻盈,完全免费与开源: 采用轻量MVC架构开发,兼顾效率与拓展性。全局高效缓存,打造飞速体验。 让简洁与强大并存: 强大字段自定义功能,完善的后台开关模块,不会编程也能搭建网站系统。 顶级搜索优化功能: 纯静态、伪静态,全部支持自由设置规则,内容、栏目自由设置URL格式。 升级、备份、转移一键完成: 一键升级、一键备份、一键转移。从此,让你的网站维护变得如此轻松。 系统功能: 1、会员自助发布,会员发布管理,发布审核 2、系统功能:静态HTML生成、自定义模板标签、附件清理、数据备份恢复 3、在线升级:一键自动在线安全补丁升级,免除维护烦恼 4、自定义字段:强大的自定义字段功能,可按栏目、频道添加各种输入字段,包括文本、数字、单选、多选、编辑器、单附件、多附件、频道关联,并可针对附件单独制定缩略图设置 5、搜索引擎优化:独立的页面优化信息设置,方便快捷 6、HTML静态:全站纯静态生成功能 7、伪静态:全站伪静态功能,可自由指定伪静态规则 8、附件检测:自动附件清理功能,一键清除使用多余附件,保持系统纯净 9、高效缓存:全站高效缓存机制,运行飞速体验 10、全功能权限设定:分组机制管理权限设定,全功能全栏目均可指定管理权限 系统安装方法请参考:“安装教程.doc” 版权所有:无版权限制可随意传播 QQ:1915127502 访问网站后台:http://你的网址/doyo.php 后台帐号、密码:admin(登录成功后请及时修改密码)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值