修改xwiki启动的默认端口

把xwiki安装目录下的start_xwiki.sh,start_xwiki.bat,stop_xwiki.sh,stop_xwiki.bat,start_xwiki_debug.sh文件中8080全部修改你想要的端口号如8180,把其中的8079也全部修改你想要的端口号如8179。然后重启xwiki:./start_xwiki.shbash start_xwiki.sh

不修改配置文件,使用./start_xwiki.sh或`bash start_xwiki.sh启动xwiki使用的是默认端口号8080,请用查看8080端口号是否被其它应用占用,我们的服务器的8080端口号就是被占用了,所以启动不起来。这个默认端口8080太火热了,还是换个端口用吧!

[root@localhost xwiki]# netstat  -anp  |grep 8080
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      64199/unicorn worke
tcp        0      0 127.0.0.1:8080          127.0.0.1:42140         TIME_WAIT   -
tcp        0      0 127.0.0.1:8080          127.0.0.1:42136         TIME_WAIT   -
tcp        0      0 127.0.0.1:8080          127.0.0.1:42138         TIME_WAIT   -
tcp        0      0 127.0.0.1:8080          127.0.0.1:42134         TIME_WAIT   -

在这里插入图片描述

在这里插入图片描述

[root@localhost xwiki]# ./start_xwiki.sh
Starting Jetty on port 8180, please wait...
2018-12-13 16:24:34.228:INFO::main: Logging initialized @681ms
2018-12-13 16:24:34.675:INFO:oejs.Server:main: jetty-9.2.13.v20150730
2018-12-13 16:24:34.704:INFO:oejs.AbstractNCSARequestLog:main: Opened /usr/local/xwiki/data/logs/2018_12_13.request.log
2018-12-13 16:24:34.707:INFO:oejdp.ScanningAppProvider:main: Deployment monitor [file:/usr/local/xwiki/jetty/contexts/] at interval 0
2018-12-13 16:24:35.084:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@47f6473{/,file:/usr/local/xwiki/webapps/root/,AVAILABLE}{/root}
2018-12-13 16:24:36.078:WARN:oeja.AnnotationConfiguration:main: ServletContainerInitializers: detected. Class hierarchy: empty
2018-12-13 16:25:51,653 [main] INFO  o.x.s.s.i.EmbeddedSolrInstance - Starting embedded Solr server...
2018-12-13 16:25:51,679 [main] INFO  o.x.s.s.i.EmbeddedSolrInstance - Using Solr home directory: [data/solr]
2018-12-13 16:25:54,466 [coreLoadExecutor-6-thread-1] WARN  o.a.s.c.SolrResourceLoader     - Solr loaded a deprecated plugin/analysis class [solr.SynonymFilterFactory]. Please consult documentation how to replace it accordingly.
2018-12-13 16:25:58,896 [main] INFO  o.x.s.s.i.EmbeddedSolrInstance - Started embedded Solr server.
2018-12-13 16:26:00.658:INFO:oejsh.ContextHandler:main: Started o.e.j.w.WebAppContext@5383967b{/xwiki,file:/usr/local/xwiki/webapps/xwiki/,AVAILABLE}{/xwiki}
2018-12-13 16:26:00.695:INFO:oejs.ServerConnector:main: Started ServerConnector@7a78d2aa{HTTP/1.1}{0.0.0.0:8180}
2018-12-13 16:26:00.695:INFO:oejs.Server:main: Started @87149ms
2018-12-13 16:26:00.695:INFO:oxtjl.NotifyListener:main: ----------------------------------
2018-12-13 16:26:00.697:INFO:oxtjl.NotifyListener:main: Server started, you can now open http://localhost:8180/ in your browser to access your wiki.
2018-12-13 16:26:00.697:INFO:oxtjl.NotifyListener:main: ----------------------------------

可以看到启动xwiki,指定端口号就使用了设置的默认端口号8180.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值