Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

端口改成80,启动服务报错 #347

Closed
gqb opened this issue Feb 22, 2018 · 7 comments
Closed

端口改成80,启动服务报错 #347

gqb opened this issue Feb 22, 2018 · 7 comments

Comments

@gqb
Copy link

gqb commented Feb 22, 2018

我在resources/app.properties添加一行server.port=80,启动服务器报错
io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501) at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486) at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:989) at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:254) at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:364) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858) at java.lang.Thread.run(Thread.java:748)

@zoujiayu
Copy link
Member

80端口可能被占用了

@gqb
Copy link
Author

gqb commented Feb 22, 2018

image
并没有被占用,80端口完全不能访问,8080和8081可以访问但是css样式不对

@zoujiayu
Copy link
Member

你使用的是系统root账户登陆吗,用root账户放行端口,然后在root账户中启动tale看看

@gqb
Copy link
Author

gqb commented Feb 22, 2018

使用管理员权限启动是可以访问了,但是里面的图片链接还有点击文章链接都使用的是9000端口所以访问不到资源,好像也加载不到css资源

@zoujiayu
Copy link
Member

进tale后台设置,把博客链接改成现在的,你之前是ip:9000换成现在的,资源就能访问了

@gqb
Copy link
Author

gqb commented Feb 22, 2018

可以了,谢谢

@p1094358629
Copy link

我之前遇到过类似的,端口应该是8080.不是80

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants