java开发问题汇总

1、导入程序后启动异常

        

java.net.ConnectException: Connection refused: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
	at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:322)
	at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:219)
	at net.spy.memcached.MemcachedClient.run(MemcachedClient.java:1591)
2016-08-04 16:08:38.455 WARN net.spy.memcached.MemcachedConnection:  Closing, and reopening {QA sa=/127.0.0.1:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}, attempt 140.
2016-08-04 16:08:54.320 INFO net.spy.memcached.MemcachedConnection:  Reconnecting {QA sa=localhost/127.0.0.1:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
2016-08-04 16:08:55.322 INFO net.spy.memcached.MemcachedConnection:  Connection state changed for sun.nio.ch.SelectionKeyImpl@934c3b
2016-08-04 16:08:55.322 INFO net.spy.memcached.MemcachedConnection:  Reconnecting due to failure to connect to {QA sa=localhost/127.0.0.1:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}

 原因:没有安装前端的缓存服务,memcached.exe。具体为什么我还不清楚

 安装步骤:1、找到符合自己电脑位数的memcached.exe

                     2、切换到memcached.exe文件夹下,在dos命令行输入memcached.exe -d install,没有提示则安装成功。

                     3、 安装的时候如果提示failed to install service or service already installed

                             猜想可能是权限问题,毕竟是要作为服务安装的嘛,于是将cmd.exe以管理员身份运行,成功了。
                             以管理员身份运行的方法是在C:/windows/system32/下找到cmd.exe,之后右键“以管理员身份运行”就好了。

                     4、启动服务

                           打开  开始-->管理工具-->服务,或者 运行-->services.msc来打开服务管理界面,前面的安装环节没有出现问题的话这里会多一个 Memcached Server服务。

                          点击启动此服务,或者命令行输入 net start "Memcached Server" 来启动memcached.

                     备注:命令行分别输入 memcached -d stop 和 net start "Memcached Server" 命令可以卸载已安装的memcached

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值