连接hbase Connection refused: no further information 5C

server环境:
在virtualbox里安装了ubuntu,然后装了了hadoop2.7.5,hbase1.3.1,然后hadoop和hbase的环境都配置好了
启动了hbase,然后本机里通过scala访问虚拟机里的hbase时,connection能获取到,但是在执行tableExists时,卡一会后就报超时了,client的代码和server的配置如:

server配置(其中zookeeper用的hbase自己管理的):
hbase-site.xml
图片说明

client的代码:

 class HbaseUtil {
        def GetHbaseConfiguration(ip:String):Unit={
            var conf = HBaseConfiguration.create;
            //这个是远程hbase的ip地址
            conf.set("hbase.zookeeper.quorum",ip)
            //conf.set("zookeeper.znode.parent", "/hbase-unsecure")
            //2181是hbase里zookeeper的默认端口号
            conf.set("hbase.zookeeper.property.clientPort","2181")
            println(ip+":habse connention success...")
            val tableName = "jndata"
            conf.set(TableInputFormat.INPUT_TABLE, tableName)

            val con= ConnectionFactory.createConnection(conf)
            val hBaseAdmin = con.getAdmin//new HBaseAdmin(conf);
            val tn = TableName.valueOf(tableName);
    //    hBaseAdmin.disableTable(tn)
    //    println(tableName + " is exist,detele....")
            //创建表
            if (hBaseAdmin.tableExists(tn)) {
                println(tableName + " is exist,....")
            }else{
                println(tableName + " is not exist,....")
            }
        }
    }

然后server端的zookeeper的log如下:
图片说明

client端的异常如下:

 Exception in thread "main" org.apache.hadoop.hbase.client.RetriesExhaustedException: Failed after attempts=36, exceptions:
Mon Apr 02 11:30:11 CST 2018, null, java.net.SocketTimeoutException: callTimeout=60000, callDuration=76915: Connection refused: no further information row 'jndata,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=simon-virtualbox,16201,1522631406769, seqNum=0

    at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.throwEnrichedException(RpcRetryingCallerWithReadReplicas.java:276)
    at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:210)
    at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:60)
    at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:212)
    at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:314)
    at org.apache.hadoop.hbase.client.ClientScanner.nextScanner(ClientScanner.java:289)
    at org.apache.hadoop.hbase.client.ClientScanner.initializeScannerInConstruction(ClientScanner.java:164)
    at org.apache.hadoop.hbase.client.ClientScanner.<init>(ClientScanner.java:159)
    at org.apache.hadoop.hbase.client.HTable.getScanner(HTable.java:796)
    at org.apache.hadoop.hbase.MetaTableAccessor.fullScan(MetaTableAccessor.java:602)
    at org.apache.hadoop.hbase.MetaTableAccessor.tableExists(MetaTableAccessor.java:366)
    at org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:408)
    at rxb.flinkDemo.hbase.HbaseUtil.GetHbaseConfiguration(HbaseUtil.scala:42)
    at rxb.flinkDemo.MyDemo$.main(FlinkDemo.scala:27)
    at rxb.flinkDemo.MyDemo.main(FlinkDemo.scala)
Caused by: java.net.SocketTimeoutException: callTimeout=60000, callDuration=76915: Connection refused: no further information row 'jndata,,' on table 'hbase:meta' at region=hbase:meta,,1.1588230740, hostname=simon-virtualbox,16201,1522631406769, seqNum=0
    at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:171)
    at org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture.run(ResultBoundedCompletionService.java:65)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.ConnectException: Connection refused: no further information
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
    at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
    at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:531)
    at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:495)
    at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupConnection(RpcClientImpl.java:416)
    at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupIOstreams(RpcClientImpl.java:722)
    at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.writeRequest(RpcClientImpl.java:909)
    at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.tracedWriteRequest(RpcClientImpl.java:873)
    at org.apache.hadoop.hbase.ipc.RpcClientImpl.call(RpcClientImpl.java:1244)
    at org.apache.hadoop.hbase.ipc.AbstractRpcClient.callBlockingMethod(AbstractRpcClient.java:227)
    at org.apache.hadoop.hbase.ipc.AbstractRpcClient$BlockingRpcChannelImplementation.callBlockingMethod(AbstractRpcClient.java:336)
    at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$BlockingStub.scan(ClientProtos.java:35396)
    at org.apache.hadoop.hbase.client.ScannerCallable.openScanner(ScannerCallable.java:404)
    at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:211)
    at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:65)
    at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:212)
    at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:364)
    at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:338)
    at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:137)
    ... 4 more
好多办法都试过了还是不行:
1.server和client的防火墙都关了
2.client的host里也配置了server的ip和hostname

2个回答

主机名的hostname配置了没有

soapcoder92
simon麦田 client机器里host里配置了server的ip和hostname
一年多之前 回复

楼主,这个问题解决了吗?

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
connection refused
我在虚拟机中安装了两个Ubuntu,一个运行client,一个运行server。client和server可以相互ping通,但是当client调用connect函数时,提示connection refused。我把client程序copy到server所在系统中然后编译运行./client 127.0.1.1却能正常执行。我想问把client程序和server程序放在一个系统中就可以运行,把client放到另一个系统中就不能连接上(防火墙都关了,ip输入也都正确),这是为什么??????
Connection refused
java.sql.SQLException: Io 异常: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=169869568)(ERR=12519)(ERROR_STACK=(ERROR=(CODE=12519)(EMFI=4))))rn at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)rn at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)rn at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)rn at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:404)rn at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)rn at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)rn at java.sql.DriverManager.getConnection(Unknown Source)rn at java.sql.DriverManager.getConnection(Unknown Source)rn大概是哪些原因导致的呢?
使用dubbo报错:“Connection timed out: no further information”
2016-06-16 09:08:54,017 INFO [org.apache.zookeeper.ZooKeeper] - Client environment:user.dir=E:\xuexi\eclipse-mars\eclipse-jee-mars-2-win32-x86_64\eclipsern2016-06-16 09:08:54,018 INFO [org.apache.zookeeper.ZooKeeper] - Initiating client connection, connectString=192.168.194.128:2686 sessionTimeout=30000 watcher=org.I0Itec.zkclient.ZkClient@62631cb0rn2016-06-16 09:08:54,038 INFO [org.apache.zookeeper.ClientCnxn] - Opening socket connection to server 192.168.194.128/192.168.194.128:2686. Will not attempt to authenticate using SASL (unknown error)rn2016-06-16 09:09:15,045 WARN [org.apache.zookeeper.ClientCnxn] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnectrnjava.net.ConnectException:[color=#FF0000] Connection timed out: no further information[/color]rn at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)rn at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)rn at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)rn at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)rn2016-06-16 09:09:16,151 INFO [org.apache.zookeeper.ClientCnxn] - Opening socket connection to server 192.168.194.128/192.168.194.128:2686. Will not attempt to authenticate using SASL (unknown error)rn2016-06-16 09:09:37,157 WARN [org.apache.zookeeper.ClientCnxn] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnectrnjava.net.ConnectException:[color=#FF0000] Connection timed out: no further information[/color]rn at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)rn at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)rn at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)rn at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081)rn2016-06-16 09:09:38,258 INFO [org.apache.zookeeper.ClientCnxn] - Opening socket connection to server 192.168.194.128/192.168.194.128:2686. Will not attempt to authenticate using SASL (unknown error)rn
android连接电脑tomcat服务器报错 connection refused
在电脑上部署了tomcat的服务器,电脑ip地址是192.168.191.1,这是android应用里请求的url地址:String URL = "http://192.168.191.1:8080/system_web/server";通过 HttpResponse httpResponse=httpClient.execute(httpRequest);这种方法请求连接。n 结果报错connection to 192.168.191.1 refused。我的手机连的是电脑的wifi,而且在手机的浏览器通过访问http://192.168.191.1:8080/system_web/server是可以的,就是android程序里面报错。到底是哪里的问题啊,弄了一下午了。
Io 异常: Connection refused?
Io 异常: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))rn为什么会出现这样的错误?
java.net.ConnectException: Connection refused: connect
在生成server-configwsdd时,报异常:rn rnjava.net.ConnectException: Connection refused: connectrnrn我是有的命名:rnset Axis_lib=.\librnset Java_Cmd=java -Djava.ext.dirs=%Axis_lib%rnset Axis_Servlet=http://localhost:8880/TomcatProject/servlet/AxisServletrn%Java_Cmd% org.apache.axis.client.AdminClient -1%Axis_Servlet% deploy.wsdd rnrnrnTomcat时启动的,并http://localhost:8880/TomcatProject/servlet/AxisServlet能访问成功的!rn请高手指点....指点.....rnrn
java连接Oracle java.sql.SQLException: Connection refused: connect
大家帮忙看看这是怎么回事,我刚开始连数据库,希望大家帮我细说一下.rnString DBURL  = "jdbc:oracle:thin:@localhost:1521:ORCL" ;rnString DBUSER  = "scott" ;rnString DBPASSWORD= "tiger" ;rnconn = DriverManager.getConnection(DBURL,DBUSER,DBPASSWORD) ;//[color=#FF0000][/color]此句出现异常.rnORCL是我在服务里的"OracleServiceORCL"找到的.rn用户名和密码都对,Oracle已经启动.rn是不是Oralce 在程序外还需要配置一下,我用的是Windows XP.
JDBC连接oracle 出问题:Listener refused the connection!
我现在在做一个小项目,环境是MYECLIPS6+TOMCAT5+ORACLE10g rn当我在页面浏览时,总出现间接性的数据库连接错误,郁闷了很久。。 rnrnrn下面是MYECLIPSE中报的错误: rn java.sql.SQLException: Listener refused the connection with the following error: rn ORA-12519, TNS:no appropriate service handler found rn The Connection descriptor used by the client was: rn 192.168.133.250:1521:oracle rnrnat oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124) rnat oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:279) rnat oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:318) rnat oracle.jdbc.driver.PhysicalConnection. (PhysicalConnection.java:343) rnat oracle.jdbc.driver.T4CConnection. (T4CConnection.java:147) rnat oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:31) rnat oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:545) rnat java.sql.DriverManager.getConnection(Unknown Source) rnat java.sql.DriverManager.getConnection(Unknown Source) rnat org.zjsoft.zjsj.util.Database.getConnection(Database.java:59) rnat org.zjsoft.zjsj.util.Database.getPreparedStatement(Database.java:79) rnat org.zjsoft.zjsj.dao.impl.DepartmentDAOImpl.getDepartmentByID(DepartmentDAOImpl.java:41) rnat org.zjsoft.zjsj.dao.impl.ApplyTypeDAOImpl.setData(ApplyTypeDAOImpl.java:104) rnat org.zjsoft.zjsj.dao.impl.ApplyTypeDAOImpl.getApplyTypeByID(ApplyTypeDAOImpl.java:25) rnat org.zjsoft.zjsj.dao.impl.ApplyDAOImpl.setDataList(ApplyDAOImpl.java:151) rnat org.zjsoft.zjsj.dao.impl.ApplyDAOImpl.listApplyByStatus(ApplyDAOImpl.java:36) rnat org.zjsoft.zjsj.servlet.accepter.AcceptStatusServlet.doPost(AcceptStatusServlet.java:42) rnat org.zjsoft.zjsj.servlet.accepter.AcceptStatusServlet.doGet(AcceptStatusServlet.java:24) rnat javax.servlet.http.HttpServlet.service(HttpServlet.java:689) rnat javax.servlet.http.HttpServlet.service(HttpServlet.java:802) rnat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) rnat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) rnat org.zjsoft.zjsj.filter.EncodingFilter.doFilter(EncodingFilter.java:25) rnat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) rnat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) rnat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) rnat org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) rnat org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) rnat org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) rnat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) rnat org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) rnat org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) rnat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) rnat org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) rnat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) rnat org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) rnat org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) rnat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) rnat org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) rnat org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) rnat org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) rnat org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) rnat org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) rnat org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) rnat org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) rnat org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) rnat java.lang.Thread.run(Unknown Source) rnrnrn下面是我浏览器上显示的错误: rn java.lang.NullPointerException rnorg.zjsoft.zjsj.util.Database.getPreparedStatement(Database.java:81) rnorg.zjsoft.zjsj.dao.impl.DepartmentDAOImpl.getDepartmentByID(DepartmentDAOImpl.java:41) rnorg.zjsoft.zjsj.dao.impl.ApplyTypeDAOImpl.setData(ApplyTypeDAOImpl.java:104) rnorg.zjsoft.zjsj.dao.impl.ApplyTypeDAOImpl.getApplyTypeByID(ApplyTypeDAOImpl.java:25) rnorg.zjsoft.zjsj.dao.impl.ApplyDAOImpl.setDataList(ApplyDAOImpl.java:151) rnorg.zjsoft.zjsj.dao.impl.ApplyDAOImpl.listApplyByStatus(ApplyDAOImpl.java:36) rnorg.zjsoft.zjsj.servlet.accepter.AcceptStatusServlet.doPost(AcceptStatusServlet.java:42) rnorg.zjsoft.zjsj.servlet.accepter.AcceptStatusServlet.doGet(AcceptStatusServlet.java:24) rnjavax.servlet.http.HttpServlet.service(HttpServlet.java:689) rnjavax.servlet.http.HttpServlet.service(HttpServlet.java:802) rnorg.zjsoft.zjsj.filter.EncodingFilter.doFilter(EncodingFilter.java:25) rnrnrnorg.zjsoft.zjsj.util.Database.getPreparedStatement(Database.java:81)代码如下: rn private Connection getConnection() rnConnection connection = null; rntry rnClass.forName(DBDRIVER); // 加载数据库驱动类 rn catch (ClassNotFoundException e) rne.printStackTrace(); rn rntry rnconnection = DriverManager.getConnection(DBURL, USER, PASSWORD); catch (SQLException e) rne.printStackTrace(); rn rnreturn connection; rn rnrn rn rn rnn[b]问题补充:[/b]n项目都做了这么久了 不可能再改数据库了 修改连接试了下 rn连接数已经改为300了 但还是出现那个错误啊
jndi连接AD出现Connection refused: connect
jndi连接AD出现Connection refused: connectrnException in thread "main" javax.naming.CommunicationException: 192.168.1.20:636 [Root exception is java.net.ConnectException: Connection refused: connect]rn at com.sun.jndi.ldap.Connection.(Unknown Source)rn at com.sun.jndi.ldap.LdapClient.(Unknown Source)rn at com.sun.jndi.ldap.LdapClient.getInstance(Unknown Source)rn at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)rn at com.sun.jndi.ldap.LdapCtx.(Unknown Source)rn at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(Unknown Source)rn at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unknown Source)rn at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(Unknown Source)rn at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown Source)rn at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)rn at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)rn at javax.naming.InitialContext.init(Unknown Source)rn at javax.naming.ldap.InitialLdapContext.(Unknown Source)rn at myconn.GetConn.getldapContextinstence(GetConn.java:59)rn at myconn.GetConn.main(GetConn.java:30)rnCaused by: java.net.ConnectException: Connection refused: connectrn at java.net.PlainSocketImpl.socketConnect(Native Method)rn at java.net.PlainSocketImpl.doConnect(Unknown Source)rn at java.net.PlainSocketImpl.connectToAddress(Unknown Source)rn at java.net.PlainSocketImpl.connect(Unknown Source)rn at java.net.SocksSocketImpl.connect(Unknown Source)rn at java.net.Socket.connect(Unknown Source)rn at java.net.Socket.connect(Unknown Source)rn at java.net.Socket.(Unknown Source)rn at java.net.Socket.(Unknown Source)rn at com.sun.jndi.ldap.Connection.createSocket(Unknown Source)rn ... 15 morern是什么问题啊
hadoop FileSystem 连接hdfs报错:Connection refused
[code=java]rn public static void main(String[] args) rn // TODO Auto-generated method stubrnrn Configuration conf = new Configuration();rn try rn FileSystem fs = FileSystem.get(URI.create("hdfs://www.danpinshop.com:9000"), conf, "root");rn Path path = new Path("/testd");rn boolean result = fs.mkdirs(path);rn System.out.println(result);rn catch (IOException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn catch (InterruptedException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rn[/code]rnrn上面代码是往hdfs上创建一个目录,我的hadoop是安装在阿里云服务器上。在终端通过hadoop的命令行进行操作没有问题rn上传文件和创建目录啥的都没问题。rn这是在windows下通过eclipse执行上面代码报的错:网上也有很多人出现这个问题,大多数人都是说配置问题rn可我通过jps查看进程,全部都启动成功,在终端用命令行进行操作都是可行的,同时在windows下 访问 http://www.danpinshop.com:50070/dfshealth.jsp 都是可行的。这是公网,你们也可以访问。请大神指点rnrnjava.net.ConnectException: Call From USER-20150505FN/192.168.1.115 to www.danpinshop.com:9000 failed on connection exception: java.net.ConnectException: Connection refused: no further information; For more details see: http://wiki.apache.org/hadoop/ConnectionRefusedrn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)rn at java.lang.reflect.Constructor.newInstance(Unknown Source)rn at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:783)rn at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:730)rn at org.apache.hadoop.ipc.Client.call(Client.java:1351)rn at org.apache.hadoop.ipc.Client.call(Client.java:1300)
求助 | jdbc连接oracle报错Connection refused
[img=https://img-bbs.csdn.net/upload/201807/15/1531624571_397306.jpg][/img]rn这是报错信息rn[code=java]public class DBUtil rn public static Connection getConnection()rn Connection conn=null;rn try rn Class.forName("oracle.jdbc.driver.OracleDriver");//找到oracle驱动器所在的类rn String url="jdbc:oracle:thin:@192.168.211.1:1521:orcl"; //URL地址rn String username="C##ADMIN";rn String password="admin";rn conn=DriverManager.getConnection(url, username, password);rn rn catch (ClassNotFoundException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn catch (SQLException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn return conn;rn rn public static void close(PreparedStatement pstmt)rn if(pstmt !=null)rn try rn pstmt.close();rn catch (SQLException e) rn rn e.printStackTrace();rn rn rn rn rn public static void close(ResultSet rs)rn if(rs !=null)rn try rn rs.close();rn catch (SQLException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn rn rn[/code]rn代码
putty connection refused问题
putty connection refused问题的定位解决,putty connection refused问题的定位解决
java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refusedrn at java.net.PlainSocketImpl.socketConnect(Native Method)rn at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)rn at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)rn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)rn at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)rn at java.net.Socket.connect(Socket.java:519)rn at java.net.Socket.connect(Socket.java:469)rn at java.net.Socket.(Socket.java:366)rn at java.net.Socket.(Socket.java:180)rn at ism.config.FtpClient.(FtpClient.java:35)rn at ism.config.IsmConfigManagerImpl.checkFTP(IsmConfigManagerImpl.java:337)rn at ism.config.IsmConfigManagerImpl.insertNode(IsmConfigManagerImpl.java:277)rn at ism.config.IsmConfigManagerImpl.insertNode(IsmConfigManagerImpl.java:1136)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)rn at sun.rmi.transport.Transport$1.run(Transport.java:159)rn at java.security.AccessController.doPrivileged(Native Method)rn at sun.rmi.transport.Transport.serviceCall(Transport.java:155)rn at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)rnrnrn备注:监听端口状态为rn command: netstat -an|grep 22120rn *.22120 *.* 0 0 128000 0 LISTENrn *.22120 *.* 0 0 128000 0 LISTENrnrn求思路~~~rnrn rnrn
Connection refused异常
java.sql.SQLException: Io 异常: Connection refused(DESCRIPTION=rnrn(ERR=12518)(VSNNUM=150999297)(ERROR_STACK=(ERROR=(CODE=12518)rnrn(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))))rn at oracle.jdbc.dbaccess.DBError.throwSqlExceptionrnrn(DBError.java:134)rn at oracle.jdbc.dbaccess.DBError.throwSqlExceptionrnrn(DBError.java:179)rn at oracle.jdbc.dbaccess.DBError.throwSqlExceptionrnrn(DBError.java:333)rn at oracle.jdbc.driver.OracleConnection.rnrn(OracleConnection.java:404)rn at oracle.jdbc.driver.OracleDriver.getConnectionInstancernrn(OracleDriver.java:468)rn at oracle.jdbc.driver.OracleDriver.connectrnrnrn我用定时器刷新,每刷新一次连接一次,有时候就会报这个异常,有可能是几个小时,也有可能是几分钟rn这是什么原因啊,改怎么解决呢!!!rn谢谢
Applet-RMI-Callback出现Connection refused
服务器端(codebase主机):Linuxrn客户端(applet):WindowsXP SP2rnrn客户端applet加载后通过RMI在服务器端注册,然后当服务器端有新的信息时,就通过RMI回调applet的方法通知客户端,但是如果回调过于频繁就出现了:rnjava.rmi.ConnectException: rnConnection refused to host: 192.168.100.31; rnnested exception is :java.net.ConnectException: Connection refusedrn这是什么原因?rn是不是由于回调过于频繁后建立的TCP套接字连接超过了WindowsXP的最大连接数呢?rn难道服务器每次回调时都要建立新的连接吗?rnrn
hive: connection refused
java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://192.168.4.126:10000/default: java.net.ConnectException: Connection refused: connectrn at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:229)rn at org.apache.hive.jdbc.HiveConnection.(HiveConnection.java:176)rn at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:105)rn at java.sql.DriverManager.getConnection(DriverManager.java:571)rn at java.sql.DriverManager.getConnection(DriverManager.java:215)rn at com.hive.test.HiveDao.HiveExample(HiveDao.java:35)rn at com.hive.test.HiveDao.main(HiveDao.java:90)rnCaused by: org.apache.thrift.transport.TTransportException: java.net.ConnectException: Connection refused: connectrn at org.apache.thrift.transport.TSocket.open(TSocket.java:187)rn at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:266)rn at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)rn at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:204)rn ... 6 morernCaused by: java.net.ConnectException: Connection refused: connectrn at java.net.DualStackPlainSocketImpl.connect0(Native Method)rn at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)rn at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)rn at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)rn at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)rn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)rn at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)rn at java.net.Socket.connect(Socket.java:579)rn at org.apache.thrift.transport.TSocket.open(TSocket.java:182)rn ... 9 morernconnection error!rnrn [size=13px]在eclipse上写的一个简单的hiveTest,结果一直报这个错误,希望遇到过类似问题的朋友帮忙解答。谢谢![/size]
connection refused 及 showmount 错误
想用两台机器搭成集群,但在测试rsh是出现问题,输入rsh server (server是另一台主机名)显示如下错误:rnconnect to address 192.168.0.1 port 543: Connection refused rn还有另外一问题就是想在本机器是查看主节点机器(server)的共享目录输入命令:showmount -e serverrn显示错误:mount clntudp_create:RPC: Program not registeredrn请高手帮帮忙
Io 异常: Connection refused
Io 异常: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=36716544)(ERR=12500)(ERRORrn_STACK=(ERROR=(CODE=12500)(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))))rn rn这是我访问数据库时遇到的问题。是在jsp中通过 jdbc class12.jar 访问 oracle 7.3rn有的 时候正常,有的是被拒绝,请问是什么原因啊?
hadoop3.0 Connection refused
hadoop3.0 Connection refused会是哪里出问题,本地ssh登录无问题rnrnhadoop@ubuntu:~/hadoop-3$ sudo ./sbin/start-dfs.sh rnWARNING: HADOOP_SECURE_DN_USER has been replaced by HDFS_DATANODE_SECURE_USER. Using value of HADOOP_SECURE_DN_USER.rnStarting namenodes on [localhost]rnpdsh@ubuntu: localhost: connect: Connection refusedrnStarting datanodesrnpdsh@ubuntu: localhost: connect: Connection refusedrnStarting secondary namenodes [ubuntu]rnpdsh@ubuntu: ubuntu: connect: Connection refused
redis.clients.jedis.exceptions.JedisDataException: ERR Connection refused
org.springframework.dao.InvalidDataAccessApiUsageException: ERR Connection refused; nested exception is redis.clients.jedis.exceptions.JedisDataException: ERR Connection refusedrn at org.springframework.data.redis.connection.jedis.JedisExceptionConverter.convert(JedisExceptionConverter.java:44)rn at org.springframework.data.redis.connection.jedis.JedisExceptionConverter.convert(JedisExceptionConverter.java:36)rn at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:37)rn at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:37)rn at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:37)rn at org.springframework.data.redis.connection.jedis.JedisConnection.convertJedisAccessException(JedisConnection.java:195)rn at org.springframework.data.redis.connection.jedis.JedisConnection.exists(JedisConnection.java:760)rn at sun.reflect.GeneratedMethodAccessor228.invoke(Unknown Source) at sun.reflect.GeneratedMethodAccessor228.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.springframework.data.redis.core.CloseSuppressingInvocationHandler.invoke(CloseSuppressingInvocationHandler.java:57)rn at com.sun.proxy.$Proxy144.exists(Unknown Source)rn at com.xwtech.cache.dao.impl.RedisCacheDAOImpl$6.doInRedis(RedisCacheDAOImpl.java:141)rn at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:190).data.redis.core.RedisTemplate.execute(RedisTemplate.java:190)rn at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:152)rn at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:140)rn at com.xwtech.cache.dao.impl.RedisCacheDAOImpl.get(RedisCacheDAOImpl.java:135) at com.xwtech.cache.dao.impl.RedisCacheDAOImpl.get(RedisCacheDAOImpl.java:135)rn at com.xwtech.cache.service.impl.RedisCacheServiceImpl.get(RedisCacheServiceImpl.java:70)rn at com.xwtech.logic.service.impl.LoginServiceImpl.checkUserPass(LoginServiceImpl.java:137) at com.xwtech.logic.service.impl.LoginServiceImpl.checkUserPass(LoginServiceImpl.java:137)rnrn at sun.reflect.GeneratedMethodAccessor284.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)rnrn at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)rnrn at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85)rn at com.xwtech.logic.aop.XwtechLogicLogAdviseExecutor.log(XwtechLogicLogAdviseExecutor.java:46)rn at sun.reflect.GeneratedMethodAccessor221.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597) at java.lang.reflect.Method.invoke(Method.java:597)rnrn at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)rnrn at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)rnrn at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:68)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)rn at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)rn at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)rn at com.sun.proxy.$Proxy101.checkUserPass(Unknown Source)rn at com.alibaba.dubbo.common.bytecode.Wrapper24.invokeMethod(Wrapper24.java)rn at com.alibaba.dubbo.rpc.proxy.javassist.JavassistProxyFactory$1.doInvoke(JavassistProxyFactory.java:46)rn at com.alibaba.dubbo.rpc.proxy.AbstractProxyInvoker.invoke(AbstractProxyInvoker.java:72)rn at com.alibaba.dubbo.rpc.protocol.InvokerWrapper.invoke(InvokerWrapper.java:53)rn at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:78) at com.alibaba.dubbo.rpc.protocol.dubbo.filter.TraceFilter.invoke(TraceFilter.java:78)rnrn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rnrn at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75) at com.alibaba.dubbo.monitor.support.MonitorFilter.invoke(MonitorFilter.java:75)rnrn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rn at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:42) at com.alibaba.dubbo.rpc.filter.TimeoutFilter.invoke(TimeoutFilter.java:42)rnrn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rnrn at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:64) at com.alibaba.dubbo.rpc.filter.ExceptionFilter.invoke(ExceptionFilter.java:64)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rn at com.alibaba.dubbo.rpc.filter.ContextFilter.invoke(ContextFilter.java:60)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rn at com.alibaba.dubbo.rpc.filter.GenericFilter.invoke(GenericFilter.java:112)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91) at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rn at com.alibaba.dubbo.rpc.filter.ClassLoaderFilter.invoke(ClassLoaderFilter.java:38)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rn at com.alibaba.dubbo.rpc.filter.EchoFilter.invoke(EchoFilter.java:38)rn at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper$1.invoke(ProtocolFilterWrapper.java:91)rn at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol$1.reply(DubboProtocol.java:108)y(DubboProtocol.java:108)rnrn at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:84) at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.handleRequest(HeaderExchangeHandler.java:84)rn at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchangeHandler.received(HeaderExchangeHandler.java:170)rn at com.alibaba.dubbo.remoting.transport.DecodeHandler.received(DecodeHandler.java:52)rn at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:82) at com.alibaba.dubbo.remoting.transport.dispatcher.ChannelEventRunnable.run(ChannelEventRunnable.java:82)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)rn at java.lang.Thread.run(Thread.java:662) at java.lang.Thread.run(Thread.java:662)rnCaused by: redis.clients.jedis.exceptions.JedisDataException: ERR Connection refusedrn at redis.clients.jedis.Protocol.processError(Protocol.java:115) at redis.clients.jedis.Protocol.processError(Protocol.java:115)rn at redis.clients.jedis.Protocol.process(Protocol.java:141)rn at redis.clients.jedis.Protocol.read(Protocol.java:196)rn at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:283)rn at redis.clients.jedis.Connection.getIntegerReply(Connection.java:208)rn at redis.clients.jedis.BinaryJedis.exists(BinaryJedis.java:159)rn at org.springframework.data.redis.connection.jedis.JedisConnection.exists(JedisConnection.java:758)rn ... 59 morern有没有人遇到过这个问题。我去redis里面取值都可以取到,并且可以正常使用。我是用twemproxy来管理这写redis的。有一个redis没有用aof持久化,报错的这个用了redis 的持久化。请问是什么问题,小弟求助各位大大。
Connection refused 问题
网上也查找过相似的问题,但没有一个能解决。。rn首先说一下我这里的情况:rn1,我用Oracle 自带的Net Configuration Assistant 是可以连接上的。而且连接上后我用sqlplus 可以读取数据。rn2,我在程序用jdbc来访问,就会报错,信息如下:rn/*Exception in thread "main" java.sql.SQLException: Io 异常: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153093376)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))rn at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)rn at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:222)rn at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:335)rn at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:334)rn at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:442)rn at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)rn at java.sql.DriverManager.getConnection(Unknown Source)rn at java.sql.DriverManager.getConnection(Unknown Source)rn at ConnectionTest.main(ConnectionTest.java:17) rn * */rn可以肯定的是,我的url应该是没错的。如下:rnClass.forName("oracle.jdbc.driver.OracleDriver");rnConnection con=DriverManager.getConnection("jdbc:oracle:thin:@190.1.1.51:1521:prod", "duqu", "duqu");rnrn不知道为什么。。rn再说说网络环境,服务器的ip是10.122.65.8 也就是说,跟数据库服务器不是一个网段的,而且190.1.1.51好像是在域里面。。我现在的服务器没加进域。rn大家帮我想想办法呀,为什么Oracle可以连上,用程序就连不上呢?在数据库服务器需要开什么端口?还是给什么访问权限?谢谢了rn
Connection refused问题
用jsp连接数据库时得不到结果集,本来一直可以连到的,突然就这样了,麻烦大家帮我看看rn(不是防火墙的问题)rnrncom.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: rnrn** BEGIN NESTED EXCEPTION ** rnrnjava.net.SocketExceptionrnMESSAGE: java.net.ConnectException: Connection refused: connectrnrnSTACKTRACE:rnrnjava.net.SocketException: java.net.ConnectException: Connection refused: connectrn at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)rn at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284)rn at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)rn at com.mysql.jdbc.Connection.(Connection.java:1485)rn at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)rn at java.sql.DriverManager.getConnection(Unknown Source)rn at java.sql.DriverManager.getConnection(Unknown Source)rn at com.test.ps.util.DBUtil.getConnection(DBUtil.java:27)rn at com.test.ps.util.DBUtil.getResult(DBUtil.java:103)rn at org.apache.jsp.admin.productManage.categoryParList_jsp._jspService(categoryParList_jsp.java:59)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Unknown Source)rnrnrn** END NESTED EXCEPTION **
connection refused connect 问题
兄弟遇到一个问题,还请各位大虾指点:rn 我在eclipse中用代码起了一个服务,然后做一个客户端socket去连接(也是在eclipse中)rnnew Socket(host, port);rn 当host用127.0.0.1,连接没问题rn但当用我的实IP(172.23.5.6)时就连接不上了rn请各位大虾指点其中原有
Connection actively refused by the server
我的WEB是用TOMCAT5.0,数据库是ORACLE9i当tomcat运行的时候还可以,但过一些时间就出现如下错误rnrnConnection to server www.gk66.cn failed (Connection actively refused by the server.)rn rn哪位高手帮忙解决一下。急用
JMS Connection refused
各位前辈,小弟有个项目中使用到了JMS(使用的是ActiveMQ),但是一启动Tomcat就报如下错误,实在在百度不到答案了,请教各位前辈指点一下,分数不是很多,tomcat用的7.0.55 jdk 1.6 ,做了数据源设置rnrnrn2014-10-30 15:38:55 org.springframework.jms.listener.DefaultMessageListenerContainer refreshConnectionUntilSuccessfulrn严重: [color=#FF0000]Could not refresh JMS Connection for destination 'ActiveMQ.Adversory.Position' - retrying in 5000 ms. Cause: Could not connect to broker URL: tcp://127.0.0.1:61616. Reason: java.net.ConnectException: Connection refused: connect[/color]2014-10-30 15:38:56 org.springframework.jms.listener.DefaultMessageListenerContainer refreshConnectionUntilSuccessfulrn严重: [color=#008000]Could not refresh JMS Connection for destination 'ActiveMQ.Adversory.AlarmCurrent' - retrying in 5000 ms. Cause: Could not connect to broker URL: tcp://127.0.0.1:61616. Reason: java.net.ConnectException: Connection refused: connectrn2014-10-30 15:38:57 org.springframework.jms.listener.DefaultMessageListenerContainer refreshConnectionUntilSuccessful[/color]rn严重: [color=#FF00FF]Could not refresh JMS Connection for destination 'ActiveMQ.Adversory.MachineInformation' - retrying in 5000 ms. Cause: Could not connect to broker URL: tcp://127.0.0.1:61616. Reason: java.net.ConnectException: Connection refused: connectrn2014-10-30 15:38:58 org.springframework.jms.listener.DefaultMessageListenerContainer refreshConnectionUntilSuccessful[/color]rn严重: [color=#008000]Could not refresh JMS Connection for destination 'ActiveMQ.Adversory.Time' - retrying in 5000 ms. Cause: Could not connect to broker URL: tcp://127.0.0.1:61616. Reason: java.net.ConnectException: Connection refused: connectrn2014-10-30 15:38:59 org.springframework.jms.listener.DefaultMessageListenerContainer refreshConnectionUntilSuccessful[/color]rn严重:[color=#CC99FF] Could not refresh JMS Connection for destination 'ActiveMQ.Adversory.PartCount' - retrying in 5000 ms. Cause: Could not connect to broker URL: tcp://127.0.0.1:61616. Reason: java.net.ConnectException: Connection refused: connectrn2014-10-30 15:39:00 org.springframework.jms.listener.DefaultMessageListenerContainer refreshConnectionUntilSuccessful[/color]rn[color=#993366]严重: Could not refresh JMS Connection for destination 'ActiveMQ.Adversory.MachineStatus' - retrying in 5000 ms. Cause: Could not connect to broker URL: tcp://127.0.0.1:61616. Reason: java.net.ConnectException: Connection refused: connect[/color]rnrnrn属性文件配置:rn###########ActiveMQ配置中心###########rn##中间服务器URLrnbrokerURL=tcp://127.0.0.1:61616rn##session缓存个数rnsessionCacheSize=100rnrnrn关于错误信息中的几个类配置:rnrn rn rn rn rn rn rn rn
Spring-bot Connection refused: connect
从spring-boot 上http://start.spring.io/ 导下来的项目,自己加了controller后报错rnrn[img=https://img-bbs.csdn.net/upload/201608/23/1471942899_373628.png][/img][img=https://img-bbs.csdn.net/upload/201608/23/1471942906_969077.png][/img][img=https://img-bbs.csdn.net/upload/201608/23/1471942915_723523.png][/img]rnrn求告知哪里错了rn
Exceptionjava.net.ConnectException: Connection refused: connect
我的程序如下:rn客户端:rnimport java.io.*;rnimport java.net.*;rnrnpublic class Client rnrn PrintStream streamToServer;rn BufferedReader streamFromServer;rn Socket toServer;rn public Client()rn rn connectToServer();rn rn private void connectToServer()rn rn tryrn rn String name;rn toServer = new Socket("localHost",1001);rn streamFromServer = new BufferedReader(new InputStreamReaderrnrn((toServer.getInputStream())));rn streamToServer = new PrintStream(toServer.getOutputStream());rn System.out.print("Enter connection name:");rn BufferedReader reader = new BufferedReader(new InputStreamReaderrnrn(System.in));rn name = reader.readLine();rn streamToServer.println(name);rn String str = streamFromServer.readLine();rn System.out.println("The Server says:"+str);rn rn catch(Exception e)rn rn System.out.println("Exception"+e);rn rn rn rn rn public static void main(String[] args) rn rnrn new Client();rnrn rnrnrnrn服务器端:rnimport java.io.*;rnimport java.net.*;rnpublic class Server implements Runnable rn rn ServerSocket serverSocket;rn PrintStream streamToClient;rn BufferedReader streamFromClient;rn Socket fromClient;rn static int count = 0;rn Thread thread;rn public void Server()rn rn tryrn rn serverSocket = new ServerSocket(1001);rn rn catch (Exception e)rn rn System.out.println("Socket could not be created"+e);rn rn thread = new Thread(this);rn thread.start();rn rn public void run()rn rn tryrn rn while(true)rn rn fromClient = serverSocket.accept();rn count++;rn System.out.println("Client connection no:"+count);rn streamFromClient = new BufferedReader(new InputStreamReaderrnrn((fromClient.getInputStream())));rn streamToClient = new PrintStream(fromClient.getOutputStream());rn String str = streamFromClient.readLine();rn System.out.println("Client connection name:"+str);rn streamToClient.println("Welcome"+str);rn rn rn rn catch(Exception e)rn rn System.out.println("Exception"+e);rn rn finallyrn rn tryrn rn fromClient.close();rn rn catch(Exception e1)rn rn System.out.println("Could not close connection"+e1);rn rn rn rn rn public static void main(String[] args) rn // TODO 自动生成方法存根rn new Server();rn rnrnrn执行时显示上面的结果请问是什么原因?rn是因为端口不对吗?rn我不知道我的默认端口应该怎么查找
Connection refused: connect
我的程序运行后,会报这个异常,网上查查,说是需要声明抛出异常。我对这块不是很理解,请高手们指点一下。谢谢。
为什么connection refused 呢?
各位请看一下代码(<> page 9)rnpublic class Daytime rnrn public Daytime()rn rn rn /**rn *rn */rn public static void main(String[] args)rn rn String Hn;rn if (args.length >0)rn rn Hn=args[0];rn rn elsern rn Hn="tock.usno.navy.mil";rn rn tryrn rn Socket oSocket=new Socket(Hn,13);rn InputStream t=oSocket.getInputStream();rn StringBuffer oTime=new StringBuffer();rnrn int iC;rnrn while ((iC=t.read())!=-1)rn rn oTime.append((char)iC);rn rnrn String s=oTime.toString() .trim();rn System.out.println(s);rn t.close();rn oSocket.close();rn rn catch (Exception ex)rn rn System.out.println(ex);rn rnrnrn rnrn运行后显示:java.net.ConnectException: Connection refused: connectrn这是怎么回事呢?rn================================================================rnrnCSDN 论坛助手 Ver 1.0 B0402提供下载。 改进了很多,功能完备!rnrn★ 浏览帖子速度极快![建议系统使用ie5.5以上]。 ★ 多种帖子实现界面。 rn★ 保存帖子到本地[html格式]★ 监视您关注帖子的回复更新。rn★ 可以直接发贴、回复帖子★ 采用XML接口,可以一次性显示4页帖子,同时支持自定义每次显示帖子数量。可以浏览历史记录! rn★ 支持在线检测程序升级情况,可及时获得程序更新的信息。rnrn★★ 签名 ● rn 可以在您的每个帖子的后面自动加上一个自己设计的签名哟。rnrnHttp://www.ChinaOK.net/csdn/csdn.ziprnHttp://www.ChinaOK.net/csdn/csdn.rarrnHttp://www.ChinaOK.net/csdn/csdn.exe [自解压]rnrn
hadoop connection refused
在执行 hadoop jar $HADOOP_HOME/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.4.1.jar grep /user/hadoop/input / output 时,会报如下错误:rn...............................rn Application application_1422517158532_0004 failed 2 times due to Error launching appattempt_1422517158532_0004_000002. Got exception: java.net.ConnectException: Call From master/192.168.12.250 to master:53450 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefusedrn...............................rn备注:防火墙已经全部关闭。rn请问,这个问题应该如何解?rnrn
Socket编程connection refused问题
学习socket,自己试着编了一个C/S程序rn代码如下:rn[code=C/C++]rn/*rn *rn * clientrn *rn * */rn#includern#includern#includern#includern#includern#includern#includern#includern#define SERVPORT 1234rn#define MAXDATASIZE 100rnint main(int argc, char *argv[]) rn int sockfd, sendBytes;rn char buf[MAXDATASIZE];rn struct hostent *host;rn struct sockaddr_in servAddr;rn if(argc != 2) rn fprintf(stderr,"usage:./client [hostname]");rn exit(1);rn rn /*translate the address*/rn if((host = gethostbyname(argv[1])) == NULL) rn perror("fail to get host by name");rn exit(1);rn rn printf("Success to get host by name...\n");rn /*establish a socket*/rn if((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) rn perror("fail to establish a socket");rn exit(1);rn rn printf("Success to establish a socket...\n");rn rn /*init sockaddr_in*/rn servAddr.sin_family = AF_INET;rn servAddr.sin_port = SERVPORT;rn servAddr.sin_addr = *((struct in_addr *)host -> h_addr);rn bzero(&(servAddr.sin_zero), 8);rn /*connect the socket*/rn if(connect(sockfd, (struct sockaddr *)&servAddr, sizeof(struct sockaddr)) == -1) rn perror("fail to connect the socket");rn exit(1);rn rn printf("Success to connect the socket...\b");rn /*send datas to server*/rn if(sendBytes = send(sockfd, "hello", 5, 0) == -1) rn perror("fail to send datas");rn exit(1);rn rn printf("Success to send data!");rn close(sockfd);rn[/code]rnrn[code=C/C++]rn /*rn *rn * serverrn *rn * */rn #includern #includern #includern #includern #includern #includern #includern #includern #includern #includern #define SERVPORT 1234rn #define BACKLOG 20rn #define MAX_CON_NO 10rn #define MAX_DATA_SIZE 5rn int main() rn struct sockaddr_in serverSockaddr, clientSockaddr;rn int sinSize, recvBytes;rn int sockfd, clientfd;rn char buf[MAX_DATA_SIZE];rn /*establish a socket*/rn if((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) rn perror("fail to establish a socket");rn exit(1);rn rn printf("Success to establish a socket...(sockfd = %d)\n", sockfd);rn /*init sockaddr_in*/rn serverSockaddr.sin_family = AF_INET;rn serverSockaddr.sin_port = htons(SERVPORT);rn serverSockaddr.sin_addr.s_addr = INADDR_ANY;rn bzero(&(serverSockaddr.sin_zero), 8);rn /*bind socket*/rn if(bind(sockfd, (struct sockaddr *)&serverSockaddr, sizeof(struct sockaddr))== -1) rn perror("fail to bind");rn exit(1);rn rn printf("Success to bind the socket...\n");rn /*listen on the socket*/rn if(listen(sockfd, BACKLOG) == -1) rn perror("fail to listen");rn exit(1);rn rn printf("Success to listen on the socket...\n");rn /*accept a client's request*/rn if((clientfd = accept(sockfd, (struct sockaddr *)&clientSockaddr, &sinSize)) == -1) rn perror("fail to acceot");rn exit(1);rn rn printf("Success to accpet...\n");rn /*call recv to receive datas*/rn if((recvBytes = recv(sockfd, buf, MAX_DATA_SIZE, 0)) == -1) rn perror("fail to receive datas");rn exit(1);rn rn printf("Receive a connection:%s \n", buf);rn close(sockfd);rn [/code]rnrn在UBUNTU防火墙关闭情况下终端1执行rn[code=Assembly]rn jimmy@MyPet:~$ gcc -o server server.crn jimmy@MyPet:~$ gcc -o client client.crn jimmy@MyPet:~$ ./serverrn Success to establish a socket...(sockfd = 3)rn Success to bind the socket...rn Success to listen on the socket...[/code]rnrn终端2执行rn[code=Assembly] jimmy@MyPet:~$ ./client MyPetrn Success to get host by name...rn Success to establish a socket...rn fail to connect the socket: Connection refusedrn jimmy@MyPet:~$ ./client 127.0.0.1rn Success to get host by name...rn Success to establish a socket...rn fail to connect the socket: Connection refusedrn jimmy@MyPet:~$ ./client 127.0.1.1rn Success to get host by name...rn Success to establish a socket...rn fail to connect the socket: Connection refusedrn jimmy@MyPet:~$ [/code]rnrn查看端口rn[code=Assembly]rn jimmy@MyPet:~$ nmap MyPetrn Starting Nmap 5.21 ( http://nmap.org ) at 2012-02-19 14:35 CSTrn Nmap scan report for MyPet (127.0.1.1)rn Host is up (0.00043s latency).rn Not shown: 998 closed portsrn PORT STATE SERVICErn 21/tcp open ftprn 1234/tcp open hotlinern Nmap done: 1 IP address (1 host up) scanned in 0.19 seconds[/code]rnrn请问众位大神这client端运行时的connection refused是怎么回事呢?服务器的问题吗?rn但是根据端口情况应该是在进行监听的。rnrn谢谢!
java.net.ConnectException: Connection refused: connect?//
我用EJB生成客户端,运行的时候总报这个错误rn郁闷好久了 请教各位大哥 这是什么问题啊?rn 我EJB没有部署到其他机器上 就在本机啊,数据库也是本机rn 数据库是通的rn建EJB的过程也没问题,但为什么一运行生成的客户端 就报这个错呢?rn 大家帮帮忙~~
connection to ":0.0" refused by server
我打算在我的RHEL AS4 上安装 oracle9i,可是突然提示一个错误,大概就是如下这样:rnxlib:connection to "0.0" refused by serverrnxlib:no protocol specfiedrnrnException in thread "main"java.lang.InternalError:Can't connect to X11 window server using ':0"as the value of the DISPLAY variable.rn at sun.awt.X11GraphicsEnviroment.iniDisplay(Native Method)rn ........rn等等之类的都是JAVA出错的一些信息了rn我试把DISPLAY给导出来,没什么效果(export DISPLAY=ip:0),用xhost也没什么用,有时候用xhost的时候还提示错误,无法完成,有时又会成功,提示已经添加到access control list中,不明白为什么,还有没有什么其他解决的办法
tomcat:Connection refused: connect什么原因
我的tomcat.startup.bat后,客户端同时启动1000个以上线程去请求它时,开始运行会有 rnjava.net.ConnectException: Connection refused: connect rnat java.net.PlainSocketImpl.socketConnect(Native Method) rnat java.net.PlainSocketImpl.doConnect(Unknown Source) rnat java.net.PlainSocketImpl.connectToAddress(Unknown Source) rnat java.net.PlainSocketImpl.connect(Unknown Source) rnat java.net.SocksSocketImpl.connect(Unknown Source) rnat java.net.Socket.connect(Unknown Source) rnat java.net.Socket.connect(Unknown Source) rnat java.net.Socket.(Unknown Source) rnat java.net.Socket.(Unknown Source) rn抛出,大家帮分析下是什么原因呢? rn我的server.xml中设置maxThreads="500" rnacceptCount="500" rnrn
UbuntuTCP/IP通讯Connection refused
本人初试Linux编程,根据书写了个小C/S例子,如下rnserverrn[code=C/C++]rn#includern#includern#includern#includern#includern#includern#includernrnint main( int argc, char *argv[] ) rnrn int server_sockfd,client_sockfd;rn int server_len,client_len;rn struct sockaddr_in server_address;rn struct sockaddr_in client_address;rn //建立Socketrn server_sockfd=socket(AF_INET,SOCK_STREAM,0);rn if(server_sockfd<0)rn printf("Create FAlSE\n");rn printf("server_sockfd:%d\n",server_sockfd);rn //端口号等rn server_address.sin_family=AF_INET;rn server_address.sin_port=htons(12345);rn server_address.sin_addr.s_addr=htonl(INADDR_ANY);rn server_len=sizeof(server_address);rn //绑定rn int bindinfo=bind(server_sockfd,(struct sockaddr *)&server_address,server_len);rn printf("bind:%d\n",bindinfo);rn //监听rn int listeninfo=listen(server_sockfd,5);rn printf("listen:%d\n",listeninfo);rn //等待客户端链接rn printf("server waiting\n");rn client_len=sizeof(client_address);rn client_sockfd=accept(server_sockfd,(struct sockaddr *)&client_address,&client_len);rn printf("client_sockfd:%d\n",client_sockfd);rn //收到数据并返回rn char str[100]; rn int tmp=read(client_sockfd,str,100);rn str[tmp]=0;rn printf("read:%s\n",str);rn write(client_sockfd,str,tmp);rn close(client_sockfd);rn close(server_sockfd);rn //退出rn //return 0;rn exit(0);rnrn[/code]rnclientrn[code=C/C++]rn#includern#includern#includern#includern#includern#includern#includernrnint main( int argc, char *argv[] ) rnrn int conn_sockfd;rn int conn_len;rn struct sockaddr_in conn_address;rn //Create Socketrn conn_sockfd=socket(AF_INET,SOCK_STREAM,0);rn //IP Port so onrn conn_address.sin_family=AF_INET;rn conn_address.sin_port=htons(12345);rn conn_address.sin_addr.s_addr=inet_addr("127.0.0.1");rn conn_len=sizeof(conn_address);rn //connectrn int conninfo=connect(conn_sockfd,(struct sockaddr *)&conn_address,conn_len);rn printf("connect:%d\n",conninfo);rn if(conninfo!=0) rn printf("errno:%s\n",strerror(errno));rn return 1;rn rn //recv sendrn send(conn_sockfd,argv[1],strlen(argv[1]),0);rn char str[100]; rn int num=recv(conn_sockfd,str,100,0);rn str[num]=0;rn printf("recv[%d]:%s\n",num,str);rn //closern close(conn_sockfd);rn //return 0;rn exit(0);rnrn[/code]rn非常简单,但却出现了问题。我开启两个终端,先启动服务程序,后启动客户端程序,第一次执行一切正常。但是当我再次启动服务程序后,启动客户端程序会出现connect链接不成功的情况“Connection refused”,并且启动多次都这样。这时只有使用ctrl+c中断服务器程序,重启服务器程序,客户端程序才会链接成功。rn服务器和客户端程序退出时明明close了,为什么会这样,我想知道。望指明。
ssh 无法连接,提示connection refused
因为我负责管理学校的一台服务器,系统为 CentOS 5.6,为了方便在宿舍也能管理,我在服务器上开了SSH服务,防火墙也开了22端口,在本机通过命令ssh localhost 能够成功,但是我在宿舍却不能够连得上去,总提示我connection refused ,无奈之下我只能开Telnet。想问问大家有没有什么办法解决ssh无法连接的问题
reason: Connection to https://dl-ssl.google.com refused
Fetching https://dl-ssl.google.com/android/repository/addons_list-1.xmlrnFailed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to https://dl-ssl.google.com refusedrnFetched Add-ons List successfullyrnFetching URL: https://dl-ssl.google.com/android/repository/repository-6.xmlrnFailed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to https://dl-ssl.google.com refusedrnDone loading packages.rnrn网上能找的方法都试过了。有人能指导下吗?rn小白,刚学在搭建环境就安装不下去了
关于connection被refused的问题。。。
我使用的是hibernate,配置中的url和用户名密码在使用jdbc方式的时候是没有问题的,错误信息如下:rnrnjava.net.ConnectException: Connection refused: connectrn at java.net.PlainSocketImpl.socketConnect(Native Method)rn at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)rn at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)rn at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)rn at java.net.Socket.connect(Socket.java:452)rn at java.net.Socket.connect(Socket.java:402)rn at java.net.Socket.(Socket.java:309)rn at java.net.Socket.(Socket.java:184)rn at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)rn at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121)rn at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:705)rn at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:359)rn at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:168)rn at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:393)rn at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)rn at com.icss.sieaf.test.DummyClientTestCase.post(DummyClientTestCase.java:159)rn at com.icss.sieaf.test.DummyClientTestCase.request(DummyClientTestCase.java:121)rn at com.icss.sieaf.test.DummyClientTestCase.request(DummyClientTestCase.java:61)rn at com.icss.sieaf.common.baseinfo.employer.EmployerInfoFindTestCase.testAddSysUser(EmployerInfoFindTestCase.java:19)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:324)rn at junit.framework.TestCase.runTest(TestCase.java:154)rn at junit.framework.TestCase.runBare(TestCase.java:127)rn at junit.framework.TestResult$1.protect(TestResult.java:106)rn at junit.framework.TestResult.runProtected(TestResult.java:124)rn at junit.framework.TestResult.run(TestResult.java:109)rn at junit.framework.TestCase.run(TestCase.java:118)rn at junit.framework.TestSuite.runTest(TestSuite.java:208)rn at junit.framework.TestSuite.run(TestSuite.java:203)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:474)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:194)rnrn为什么使用Hibernate就被refused??
rsh 为什么不行 :Connection refused
[root@lx95 ~]# rsh lx95 echo testrnconnect to address 192.168.1.95: Connection refusedrnTrying krb4 rsh...rnconnect to address 192.168.1.95: Connection refusedrntrying normal rsh (/usr/bin/rsh)rntestrn[root@lx95 ~]# cat /etc/hostsrn# Do not remove the following line, or various programsrn# that require network functionality will fail.rn127.0.0.1 localhost.localdomain localhostrn192.168.1.95 lx95.localdomain lx95rn192.168.1.94 lx94.localdomain lx94rnrn[root@lx95 ~]# cat /root/.rhostsrn192.168.1.95 rootrnrn以上是相关信息,求大侠帮忙rn
Invalid argument connection refused 急
在开发板中ftp 出现connection refused 错误,用ping 可以通主机,请问怎样解决???rn防火墙关了,打开了port21 ,还是不行,请问如何检查ftp有没有启动?我用/sbin/service proftpd start 不行啊 !rn还有我在板子用 mount -t nfs -o nolock 主机ip:mnt/a /mnt时无法挂载rn错误信息:rnnfs waring mountver neww\er than kernelrnNFS:mount program didn't pass remote addressrnmoubt .....Invalid argument
相关热词 c#部署端口监听项目、 c#接口中的属性使用方法 c# 昨天 c#func链接匿名方法 c#怎么创建文件夹 c#从键盘接收空格 c#da/ad c#部门请假管理系统 c#服务器socket c# 默认的访问修饰符