NutzCN Logo
问答 jar怎么部署,求指教
发布于 2076天前 作者 qq_5336d4bb 1287 次浏览 复制 上一个帖子 下一个帖子
标签:

执行 jar -Xmx512m -Xms512m -Dnutz.profiles.active=prod -jar sys.jar &
不行啊

8 回复

什么叫不行

jar  -Xmx512m -Xms512m -Dnutz.profiles.active=prod -jar sys.jar &
[1] 12887
[root@VM_0_2_centos nuzt]# Illegal option: X
Usage: jar {ctxui}[vfmn0PMe] [jar-file] [manifest-file] [entry-point] [-C dir] files ...
Options:
    -c  create new archive
    -t  list table of contents for archive
    -x  extract named (or all) files from archive
    -u  update existing archive
    -v  generate verbose output on standard output
    -f  specify archive file name
    -m  include manifest information from specified manifest file
    -n  perform Pack200 normalization after creating a new archive
    -e  specify application entry point for stand-alone application 
        bundled into an executable jar file
    -0  store only; use no ZIP compression
    -P  preserve leading '/' (absolute path) and ".." (parent directory) components from file names
    -M  do not create a manifest file for the entries
    -i  generate index information for the specified jar files
    -C  change to the specified directory and include the following file
If any file is a directory then it is processed recursively.
The manifest file name, the archive file name and the entry point name are
specified in the same order as the 'm', 'f' and 'e' flags.

Example 1: to archive two class files into an archive called classes.jar: 
       jar cvf classes.jar Foo.class Bar.class 
Example 2: use an existing manifest file 'mymanifest' and archive all the
           files in the foo/ directory into 'classes.jar': 
       jar cvfm classes.jar mymanifest -C foo/ .

是 java呀大哥

jar是打包命令

[DEBUG] 20:15:06.844 org.nutz.ioc.aop.impl.DefaultMirrorFactory.getMirror(DefaultMirrorFactory.java:76) - Load class cn.wizzer.app.sys.commons.core.DubboRpcSysMainLauncher without AOP
[DEBUG] 20:15:06.847 org.nutz.ioc.impl.NutIoc.get(NutIoc.java:166) - Get 'dao'<interface org.nutz.dao.Dao>
[DEBUG] 20:15:06.848 org.nutz.resource.Scans.scan(Scans.java:280) - Found 34 resource by src( cn/wizzer/app/sys/ ) , regex( ^.+[.]class$ )
[DEBUG] 20:15:07.114 org.nutz.resource.Scans.scan(Scans.java:280) - Found 34 resource by src( cn/wizzer/app/sys/ ) , regex( ^.+[.]class$ )
[DEBUG] 20:15:07.402 org.nutz.dao.impl.sql.run.NutDaoExecutor.printSQL(NutDaoExecutor.java:388) - SELECT COUNT(*) FROM sys_user
[DEBUG] 20:15:07.418 org.nutz.dao.impl.interceptor.DaoTimeInterceptor.filter(DaoTimeInterceptor.java:28) - time=15ms, sql=SELECT COUNT(*) FROM sys_user
[INFO ] 20:15:07.421 org.nutz.boot.NbApp.execute(NbApp.java:214) - wk-nb-dubbo-sys started : 4183ms
[DEBUG] 20:15:20.147 org.apache.zookeeper.ClientCnxn$SendThread.readResponse(ClientCnxn.java:742) - Got ping response for sessionid: 0x16556ce627d0001 after 1ms

这样算是成了吗?,我加了&,怎么不是后台运行

&是后台运行了, 只是日志打印到控制台了而已, log4j.properties的锅

那算启动成功了?访问端口是8080,是不是

service没有http方面的端口, web才有哦

添加回复
请先登陆
回到顶部