摘要: Linux网络编程一步一步学-异步通讯聊天程序selectClient#include <stdio.h>#include <stdlib.h>#include <errno.h>#include <string.h>#include <sys/types.h>#include <netinet/in.h>#include <sys/socket.h>#include <sys/wait.h>#include <unistd.h>#include <arpa/inet.h># 阅读全文
posted @ 2010-10-25 20:26 程序员天下 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 问题:org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.解决办法:Edit /var/lib/pgsql/data/postgresql.conf fileChange#listen_addresses = 'localhost'to listen_addresses = '*'问题:org.postgr 阅读全文
posted @ 2010-10-25 17:11 程序员天下 阅读(728) 评论(0) 推荐(0) 编辑
摘要: 1. 第一种方法,编辑${CATALINA_HOME}/conf/context.xml文件,将以下行的注释打开,然后重新启动Tomcat <Manager pathname="" /> 2. 第二种方法,编辑具体的webapp的context.xml文件,这个文件有可能是${CATALINA_HOME}/conf/Catalina/localhost/<myapp>.xml,也有可能是${CATALINA_HOME}/webapps/<myapp>/META-INF/context.xml,编辑这个文件,加入以下行,然后重新启动Tomc 阅读全文
posted @ 2010-10-25 17:08 程序员天下 阅读(187) 评论(0) 推荐(0) 编辑