一直报这个错
cannot assign requested address:bind
我的第一反应是端口被占用了,但是查看也没有被占用
9 回复
@wendal 麻烦帮忙看看
|82 |nutz.mvc.whale.enc.output |no | |U
TF-8 |在其他Filter之前设置output编码|org.nutz.boot.starter.nutz.mvc.WhaleFil
terStarter|
|83 |nutz.mvc.whale.http.hidden_method_param |no | |
|隐形http方法参数转换所对应的参数名 |org.nutz.boot.starter.nutz.mvc.Wha
leFilterStarter|
|84 |nutz.mvc.whale.http.method_override |no | |f
alse |是否允许使用X-HTTP-Method-Override|org.nutz.boot.starter.nutz.mvc.Whal
eFilterStarter|
|85 |nutz.mvc.whale.upload.enable |no | |f
alse |是否启用隐形Upload支持 |org.nutz.boot.starter.nutz.mvc.WhaleFilte
rStarter|
|86 |redis.database |no | |0
|redis数据库序号 |org.nutz.boot.starter.redis.JedisStarter|
|87 |redis.host |no | |1
27.0.0.1 |redis服务器ip或域名 |org.nutz.boot.starter.redis.JedisStarter|
|88 |redis.max_redir |no | |1
0 |redis集群最大重定向次数 |org.nutz.boot.starter.redis.JedisStarter
|
|89 |redis.nodes |no | |
|redis集群节点列表 |org.nutz.boot.starter.redis.JedisStarter|
|90 |redis.password |no | |
|redis密码 |org.nutz.boot.starter.redis.JedisStarter|
|91 |redis.port |no | |6
379 |redis服务器端口 |org.nutz.boot.starter.redis.JedisStarter|
|92 |redis.soTimeout |no | |0
|redis写超时 |org.nutz.boot.starter.redis.JedisStarter|
|93 |redis.timeout |no | |2
000 |redis读写超时 |org.nutz.boot.starter.redis.JedisStarter|
|94 |shiro.ini.path |no | |
|shiro.ini的路径,如果shiro.ini存在,就会使用它,否则走NB的内部逻辑|org.nu
tz.boot.starter.shiro.ShiroEnvStarter|
|95 |shiro.ini.urls |no | |
|urls过滤清单 |org.nutz.boot.starter.shiro.ShiroEnvStarter|
|96 |shiro.realm.cache.enable |no | |
|realm是否缓存 |org.nutz.boot.starter.shiro.ShiroEnvStarter|
|97 |shiro.session.cache.redis.debug |no | |f
alse |session持久化时redis的debug模式|org.nutz.boot.starter.shiro.ShiroEnvSt
arter|
|98 |shiro.session.cache.redis.mode |no | |k
v |设置redis缓存的模式 |org.nutz.boot.starter.shiro.ShiroEnvStarte
r|
|99 |shiro.session.cache.redis.ttl |no | |-
1 |redis缓存的过期时间 |org.nutz.boot.starter.shiro.ShiroEnvStarte
r|
|100 |shiro.session.cache.type |no | |m
emory |设置使用的缓存类型 |org.nutz.boot.starter.shiro.ShiroEnvStar
ter|
|101 |shiro.session.cookie.httpOnly |no | |t
rue |Cookie是否只读 |org.nutz.boot.starter.shiro.ShiroEnvStarter|
|102 |shiro.session.cookie.maxAge |no | |9
46080000 |Cookie的过期时间,单位:毫秒 |org.nutz.boot.starter.shiro.ShiroEnvStar
ter|
|103 |shiro.session.cookie.name |no | |s
id |Cookie的name |org.nutz.boot.starter.shiro.ShiroEnvStarter|
|104 |shiro.session.enable |no | |t
rue |是否启用Shiro的Session管理 |org.nutz.boot.starter.shiro.ShiroEnvStarte
r|
|105 |shiro.url.login |no | |/
user/login|默认登录路径 |org.nutz.boot.starter.shiro.ShiroEnvStarte
r|
|106 |shiro.url.logout_redirect |no | |/
|退出登录后的重定向路径 |org.nutz.boot.starter.shiro.ShiroEnvSt
arter|
|107 |shiro.url.unauth |no | |/
user/login|访问未授权页面后的重定向路径 |org.nutz.boot.starter.shiro.ShiroE
nvStarter|
|108 |undertow.contextPath |no | |/
|上下文路径 |org.nutz.boot.starter.undertow.UndertowStart
er|
|109 |undertow.gzip.enable |no | |f
alse |是否启用gzip |org.nutz.boot.starter.undertow.UndertowStarte
r|
|110 |undertow.gzip.level |no | |-
1 |gzip压缩级别 |org.nutz.boot.starter.undertow.UndertowStarte
r|
|111 |undertow.gzip.minContentSize |no | |5
12 |gzip压缩最小触发大小 |org.nutz.boot.starter.undertow.UndertowSt
arter|
|112 |undertow.host |no | |0
.0.0.0 |监听的ip地址 |org.nutz.boot.starter.undertow.UndertowStart
er|
|113 |undertow.port |no | |8
080 |监听的端口 |org.nutz.boot.starter.undertow.UndertowStart
er|
|114 |undertow.staticPath |no | |s
tatic/ |静态文件路径 |org.nutz.boot.starter.undertow.UndertowStar
ter|
|115 |undertow.welcome_files |no | |i
ndex.html,index.htm,index.do|WelcomeFile列表 |org.nutz.boot.starter.undert
ow.UndertowStarter|
|116 |web.session.timeout |no | |3
0 |Session空闲时间,单位分钟 |org.nutz.boot.starter.jetty.JettyStarter,
org.nutz.boot.starter.undertow.UndertowStarter|
|117 |weixin.aes |no | |
|微信公众号API被动消息的AES秘钥 |org.nutz.boot.starter.nutz.weixin.Wei
xinStarter|
|118 |weixin.appid |no | |
|微信公众号的appid |org.nutz.boot.starter.nutz.weixin.WeixinSta
rter|
|119 |weixin.appsecret |no | |
|微信公众号的appsecret |org.nutz.boot.starter.nutz.weixin.WeixinSta
rter|
|120 |weixin.openid |no | |
|微信公众号的OpenId |org.nutz.boot.starter.nutz.weixin.WeixinSta
rter|
|121 |weixin.token |no | |
|微信公众号API被动消息的Token |org.nutz.boot.starter.nutz.weixin.Weixi
nStarter|
|122 |wxlogin.appid |no | |
|微信登录所需要的appid |org.nutz.boot.starter.nutz.weixin.WeixinS
tarter|
|123 |wxlogin.appsecret |no | |
|微信登录所需要的appsecret |org.nutz.boot.starter.nutz.weixin.WeixinS
tarter|
|124 |wxlogin.host |no | |
|微信登录时使用的host头,需要包含http或https|org.nutz.boot.starter.nutz.
weixin.WeixinStarter|
[INFO ] 10:35:41.379 org.nutz.ioc.impl.NutIoc.<init>(NutIoc.java:130) - ... NutI
oc init complete
[INFO ] 10:35:41.885 org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedule
rFactory.java:1208) - Using default implementation for ThreadExecutor
[INFO ] 10:35:41.907 org.quartz.core.SchedulerSignalerImpl.<init>(SchedulerSigna
lerImpl.java:61) - Initialized Scheduler Signaller of type: class org.quartz.cor
e.SchedulerSignalerImpl
[INFO ] 10:35:41.908 org.quartz.core.QuartzScheduler.<init>(QuartzScheduler.java
:229) - Quartz Scheduler v.2.3.0 created.
[INFO ] 10:35:41.910 org.quartz.simpl.RAMJobStore.initialize(RAMJobStore.java:15
5) - RAMJobStore initialized.
[INFO ] 10:35:41.912 org.quartz.core.QuartzScheduler.initialize(QuartzScheduler.
java:294) - Scheduler meta-data: Quartz Scheduler (v2.3.0) 'SampleApp' with inst
anceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 16 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persis
tence. and is not clustered.
[INFO ] 10:35:41.914 org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedule
rFactory.java:1362) - Quartz scheduler 'SampleApp' initialized from an externall
y provided properties instance.
[INFO ] 10:35:41.915 org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedule
rFactory.java:1366) - Quartz scheduler version: 2.3.0
[INFO ] 10:35:41.956 org.quartz.core.QuartzScheduler.setJobFactory(QuartzSchedul
er.java:2287) - JobFactory set to: org.nutz.integration.quartz.NutQuartzJobFacto
ry@1e730495
[INFO ] 10:35:42.150 org.eclipse.jetty.util.log.Log.initialized(Log.java:193) -
Logging initialized @3581ms to org.eclipse.jetty.util.log.Slf4jLog
[INFO ] 10:35:43.661 org.xnio.Xnio.<clinit>(Xnio.java:104) - XNIO version 3.3.8.
Final
[INFO ] 10:35:43.746 org.xnio.nio.NioXnio.<clinit>(NioXnio.java:55) - XNIO NIO I
mplementation Version 3.3.8.Final
[WARN ] 10:35:43.886 io.undertow.websockets.jsr.Bootstrap.handleDeployment(Boots
trap.java:67) - UT026009: XNIO worker was not set on WebSocketDeploymentInfo, th
e default worker will be used
[WARN ] 10:35:43.887 io.undertow.websockets.jsr.Bootstrap.handleDeployment(Boots
trap.java:76) - UT026010: Buffer pool was not set on WebSocketDeploymentInfo, th
e default pool will be used
[INFO ] 10:35:43.915 org.nutz.boot.starter.jdbc.DruidWebStatServletStarter.getIn
itParameters(DruidWebStatServletStarter.java:73) - druid stat view random user=d
ruid password=t1aeb7lth8jvoql5kvrqiohmgq
[INFO ] 10:35:43.920 io.undertow.servlet.spec.ServletContextImpl.log(ServletCont
extImpl.java:360) - Initializing Shiro environment
[INFO ] 10:35:43.921 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(
EnvironmentLoader.java:128) - Starting Shiro environment initialization.
[INFO ] 10:35:44.341 org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:106) - Get Con
nection from DataSource for JdbcExpert, if you lock at here, check your database
server and configure
[INFO ] 10:35:44.525 com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource
.java:930) - {dataSource-1} inited
[INFO ] 10:35:44.815 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(
EnvironmentLoader.java:141) - Shiro environment initialized in 893 ms.
[INFO ] 10:35:45.130 org.nutz.mvc.NutFilter._init(NutFilter.java:85) - NutFilter
[nutz] starting ...
[INFO ] 10:35:45.135 org.nutz.resource.impl.ErrorResourceLocation.<init>(ErrorRe
sourceLocation.java:28) - [loc=E:\book\static\WEB-INF\classes]not exist
[INFO ] 10:35:45.141 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) - Nut
z Version : 1.r.66-SNAPSHOT
[INFO ] 10:35:45.142 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) - Nut
z.Mvc[nutz] is initializing ...
[INFO ] 10:35:45.147 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java
:159) - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
[WARN ] 10:35:45.248 org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:68
) - Duplicate @At mapping ? path=/user/login
[INFO ] 10:35:45.273 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java
:221) - Found 31 module methods
[INFO ] 10:35:45.277 org.nutz.mvc.impl.NutLoading.createSessionProvider(NutLoadi
ng.java:413) - SessionBy --> org.nutz.integration.shiro.ShiroSessionProvider@56a
4479a
[INFO ] 10:35:45.278 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:141) - Nu
tz.Mvc[nutz] is up in 135ms
[INFO ] 10:35:45.279 org.nutz.mvc.NutFilter._init(NutFilter.java:117) - exclusio
nsPrefix = ^(/druid/)
[INFO ] 10:35:45.292 org.nutz.mvc.NutFilter._init(NutFilter.java:125) - exclusio
nsPath = [/swagger/swagger.json]
[INFO ] 10:35:45.306 org.eclipse.jetty.server.Server.doStart(Server.java:374) -
jetty-9.4.z-SNAPSHOT; built: 2018-06-05T18:24:03.829Z; git: d5fc0523cfa96bfebfbd
a19606cad384d772f04c; jvm 1.8.0_131-b11
[WARN ] 10:35:45.442 org.eclipse.jetty.annotations.AnnotationParser.asmVersion(A
nnotationParser.java:122) - Unrecognized runtime asm version, assuming 393216
[INFO ] 10:35:45.725 org.eclipse.jetty.annotations.AnnotationConfiguration.scanF
orAnnotations(AnnotationConfiguration.java:489) - Scanning elapsed time=0ms
[INFO ] 10:35:45.732 org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitS
ervlet(StandardDescriptorProcessor.java:283) - NO JSP Support for /, did not fin
d org.eclipse.jetty.jsp.JettyJspServlet
[INFO ] 10:35:45.741 org.eclipse.jetty.server.session.DefaultSessionIdManager.do
Start(DefaultSessionIdManager.java:365) - DefaultSessionIdManager workerName=nod
e0
[INFO ] 10:35:45.742 org.eclipse.jetty.server.session.DefaultSessionIdManager.do
Start(DefaultSessionIdManager.java:370) - No SessionScavenger set, using default
s
[INFO ] 10:35:45.745 org.eclipse.jetty.server.session.HouseKeeper.startScavengin
g(HouseKeeper.java:149) - node0 Scavenging every 660000ms
[INFO ] 10:35:45.759 org.nutz.boot.starter.jdbc.DruidWebStatServletStarter.getIn
itParameters(DruidWebStatServletStarter.java:73) - druid stat view random user=d
ruid password=qt2t24r5hoj70oiepmesagqvvj
[INFO ] 10:35:45.761 org.eclipse.jetty.server.handler.ContextHandler$Context.log
(ContextHandler.java:2318) - Initializing Shiro environment
[INFO ] 10:35:45.768 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(
EnvironmentLoader.java:128) - Starting Shiro environment initialization.
[INFO ] 10:35:45.776 org.apache.shiro.web.env.EnvironmentLoader.initEnvironment(
EnvironmentLoader.java:141) - Shiro environment initialized in 1 ms.
[INFO ] 10:35:45.786 org.nutz.mvc.NutFilter._init(NutFilter.java:85) - NutFilter
[nutz] starting ...
[INFO ] 10:35:45.792 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:55) - Nut
z Version : 1.r.66-SNAPSHOT
[INFO ] 10:35:45.796 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:56) - Nut
z.Mvc[nutz] is initializing ...
[INFO ] 10:35:45.804 org.nutz.mvc.config.AbstractNutConfig.getAppRoot(AbstractNu
tConfig.java:82) - /WEB-INF/ not Found?!
[INFO ] 10:35:45.809 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java
:159) - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
[WARN ] 10:35:45.907 org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:68
) - Duplicate @At mapping ? path=/user/login
[INFO ] 10:35:45.923 org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java
:221) - Found 31 module methods
[INFO ] 10:35:45.929 org.nutz.mvc.impl.NutLoading.createSessionProvider(NutLoadi
ng.java:413) - SessionBy --> org.nutz.integration.shiro.ShiroSessionProvider@533
b266e
[INFO ] 10:35:46.334 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:141) - Nu
tz.Mvc[nutz] is up in 531ms
[INFO ] 10:35:46.335 org.nutz.mvc.NutFilter._init(NutFilter.java:117) - exclusio
nsPrefix = ^(/druid/)
[INFO ] 10:35:46.335 org.nutz.mvc.NutFilter._init(NutFilter.java:125) - exclusio
nsPath = [/swagger/swagger.json]
[INFO ] 10:35:46.623 org.eclipse.jetty.server.handler.ContextHandler.doStart(Con
textHandler.java:851) - Started o.e.j.w.WebAppContext@30ed9c6c{/,[file:///E:/boo
k/static/, jar:file:/E:/book/lxpc.jar!/static/],AVAILABLE}
[ERROR] 10:35:47.189 org.nutz.boot.NbApp.execute(NbApp.java:218) - something hap
pen!!
java.net.BindException: Cannot assign requested address: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at org.eclipse.jetty.server.ServerConnector.openAcceptChannel(ServerConn
ector.java:331)
at org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:29
9)
at org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNet
workConnector.java:80)
at org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java
:235)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
at org.eclipse.jetty.server.Server.doStart(Server.java:398)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLife
Cycle.java:68)
at org.nutz.boot.starter.jetty.JettyStarter.start(JettyStarter.java:125)
at org.nutz.boot.AppContext.startServers(AppContext.java:306)
at org.nutz.boot.NbApp.execute(NbApp.java:204)
at org.nutz.boot.NbApp.run(NbApp.java:177)
at com.yuezhi.zxpc.MainLauncher.main(MainLauncher.java:98)
[INFO ] 10:35:49.463 org.eclipse.jetty.server.AbstractConnector.doStop(AbstractC
onnector.java:332) - Stopped ServerConnector@302fec27{HTTP/1.1,[http/1.1]}{172.1
7.30.61:80}
[INFO ] 10:35:49.891 org.eclipse.jetty.server.session.HouseKeeper.stopScavenging
(HouseKeeper.java:167) - node0 Stopped scavenging
[INFO ] 10:35:49.893 org.nutz.boot.starter.nutz.mvc.NbMvcLoading.depose(NbMvcLoa
ding.java:54) - Nutz.Mvc[nutz] is deposing ...
[INFO ] 10:35:49.894 org.nutz.boot.starter.nutz.mvc.NbMvcLoading.depose(NbMvcLoa
ding.java:70) - Nutz.Mvc[nutz] is down in 0ms
[INFO ] 10:35:49.896 org.eclipse.jetty.server.handler.ContextHandler$Context.log
(ContextHandler.java:2318) - Cleaning up Shiro Environment
[INFO ] 10:35:49.897 org.eclipse.jetty.server.handler.ContextHandler$Context.log
(ContextHandler.java:2318) - Cleaning up Shiro Environment
[INFO ] 10:35:49.898 org.eclipse.jetty.server.handler.ContextHandler.doStop(Cont
extHandler.java:1020) - Stopped o.e.j.w.WebAppContext@30ed9c6c{/,[file:///E:/boo
k/static/, jar:file:/E:/book/lxpc.jar!/static/],UNAVAILABLE}
[INFO ] 10:35:49.913 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:287) - org.nutz
.ioc.impl.NutIoc@515520300 is closing. startup date [19-12-05 10:35:41.377]
[INFO ] 10:35:50.002 com.alibaba.druid.pool.DruidDataSource.close(DruidDataSourc
e.java:1825) - {dataSource-1} closed
[INFO ] 10:35:50.006 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:301) - org.nutz
.ioc.impl.NutIoc@515520300 is deposed. startup date [19-12-05 10:35:41.377]
@wendal 试了好多端口了80 8088 8885 999 9995等等
server.port=8088
server.host=192.168.1.184
jdbc.type=druid
jdbc.url=jdbc:mysql://127.0.0.1:3306/lxpc?useUnicode=true&characterEncoding=utf8&useSSL=false
jdbc.username=root
jdbc.password=123456
nutz.dao.interceptor.time.enable=true
nutz.dao.interceptor.cache.enable=true
quartz.scheduler.instanceName=SampleApp
quartz.threadPool.threadCount=16
redis.host=10.100.19.73
redis.port=6379
redis.timeout=2000
redis.database=0
redis.password=P@ssw0rd
undertow.port=995
undertow.host=192.168.1.184
undertow.staticPath=./static
shiro.ini.urls:
/assets/** = anon
/** = authc
添加回复
请先登陆