- 博客(29)
- 收藏
- 关注
原创 VMware下Linux找不到网卡eth0的解决方法
最近用VMware安装完CentOS后,使用ifconfig配置IP时,发现网卡eth0不见了。1.使用命令:ifconfig eth0 up启动网卡,但是IP地址、子网掩码和网关都是错误的。可以使用以下命令更改:ifconfig eth0 10.0.13.24 netmask 255.255.255.0 gateway 10.0.13.1 如果网络连接方式使用的是桥接,可以继续以...
2011-09-15 15:19:30
482
原创 MQ 字符格式、编码和CCSID的问题
问题描述:用java写了一个向MQ队列发送消息的程序,MQEnvironment.CCSID = 1381并且队列的CCSID也是1381。但是在WebSphere MQ资源管理器中浏览队列消息时,发现数据的格式是空白,CCSID是819,编码是273。并且消息里面的中文都是乱码。折腾了一下午终于找到问题的根源,原来是MQMessage这个类在作怪。它继承了MQMD这个类,这个类包含发送消息的...
2011-09-15 11:09:31
4216
原创 Tomcat 6.0 配置HTTPS
打开$CATALINA_HOME/conf/server.xml,修改如下:<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> 修改参数=> <Connector port
2011-09-07 15:28:09
219
原创 ORA-00257: archiver error. Connect internal only, until freed
转载:http://blog.youkuaiyun.com/panys/article/details/3838846 1. 用sys用户登录 sqlplus sys/pass@tt as sysdba 2. 看看archiv log所在位置SQL> show parameter log_archive_dest;NAME ...
2011-08-01 09:50:48
129
原创 HTTP Status 404 - Servlet action is not available
在清理项目没有用到的jar包后,启动项目抛出以下异常: HTTP Status 404 - Servlet action is not availabletype Status report message Servlet action is not available description The requested resource (Servlet action is not a...
2011-07-27 11:59:24
125
原创 MySQLdb-1.2.1p2 or newer is required; you have 1.2.1
在将django项目部署到新的服务器后,测试时抛出以下错误:django.core.exceptions.ImproperlyConfigured: MySQLdb-1.2.1p2 or newer is required; you have 1.2.1 解决办法:将MySQLdb-1.2.1版本删除,安装MySQLdb-1.2.2或者更高的版本即可。...
2011-07-14 15:41:49
133
原创 Tomcat配置HTTP压缩功能
Tomcat5.0以后的版本是支持对输出内容进行压缩的,使用的压缩格式是gzip。 server.xml文件1 < Connector port ="80" maxHttpHeaderSize ="8192" 2 maxThreads ="150" minSpareThreads ="25" maxSpareThrea...
2011-07-05 17:48:08
143
原创 Apache配置HTTP压缩功能
对于Apache而言,有两种情况:1. 针对Apache2.0之前的版本,原本是不支持压缩传输的,不过可以通过添加第三方的mod_gzip模块来实现。2. 针对Apache2.0及之后的版本,Apache提供压缩传输支持,使用mod_deflate模块即可。 下面是对Apache2.0及之后的版本进行配置的说明1. 安装mod_deflate1) 如果使用的是系统自带的Ap...
2011-07-05 17:27:19
270
原创 如何调整PHP错误报告级别
php.ini文件 ; error_reporting is a bit-field. Or each number up to get desired error; reporting level; E_ALL - All errors and warnings (doesn't include E_STRICT); E_ERROR ...
2011-07-05 10:43:29
133
原创 如何调整Codeigniter错误报告级别
在CI框架中加载httpClient时抛出以下错误: A PHP Error was encounteredSeverity: NoticeMessage: Undefined variable: host 在默认的普通PHP文件中输出一个未声明的变量是不会报错误的,但使用codeigniter框架,却会抛出错误。为了不让类似的错误信息显示出来,于是阅读了codei...
2011-07-04 18:20:33
282
原创 JNotify:File system events library for Java
JNotify java APIJNotify is a java library that allow java application to listen to file system events, such as: File created File modified File renamed File deletedSupported platf...
2011-07-04 15:37:11
151
原创 Godaddy创始人:成就亿万富翁的10条规则
GoDaddy是一家主要向用户提供域名注册、网站空间租赁等服务的公司。近日有消息称,该公司与私募基金KKR& Co.(Kohlberg Kravis Roberts)和银湖合伙人(Silver Lake Partners)接近达成收购,收购价达20亿美元。一旦该收购成功,GoDaddy的创始人Bob Parsons将瞬间变成亿万富翁,其成功的秘诀是什么呢?The Wall Stree...
2011-06-28 13:43:20
153
原创 A New Billionaire’s 10 Rules for Success
原文链接:http://blogs.wsj.com/wealth/2011/06/24/a-new-billionaires-10-rules-for-success/ Bob Parsons (below) may be best known as the man standing next to the “GoDaddy Girls,” the busty spokesmodels...
2011-06-28 13:34:58
261
原创 SVN资源库降级
以Subversion的1.5.x降级到1.4.x为例:首先,在1.5.x建立与1.4.x兼容的资源库svnadmin --pre-1.5-compatible create project然后,将1.5.x要降级资源库导出svnadmin dump 资源库名称 > dumpfule.old将1.5.x要降级资源库的导出文件dumpfule.old导入project...
2011-06-24 16:21:48
242
原创 Expected FS format '2'; found format '4'
问题起因:给同事创建完新的项目仓库后,在checkout时报错Expected FS format '2'; found format '4'期待文件系统(FS)格式 "2”;找到格式"4”Subversion大版本更新时有可能会对其文件格式进行调整,版本2、版本3和版本4分别对应Subversion的1.4.x、1.5.x和1.6.x解决方案:1.重启svnser...
2011-06-24 16:11:09
439
原创 Linux下启动Oracle数据库服务
$ su - oracle# sqlplus /nolog# conn / as sysdba# startup# quit# lsnrctl start
2011-06-23 16:18:02
137
原创 CMDTUX_CAT:868: ERROR: tmloadcf cannot run on a non-master node
执行tmloadcf -y ubbconfig.txt,抛出以下错误:181205.hp16042!tmloadcf.3671.3086616256.-2:CMDTUX_CAT:868: ERROR: tmloadcf cannot run on a non-master node错误原因:在ubbconfig.txt文件中,机器名称错误。解决办法:改成正确的机器名称即...
2011-06-20 11:38:40
3749
原创 LIBTUX_CAT:590: ERROR: Unable to read the TUXCONFIG file, version type mismatch
执行tmboot -y命令,抛出以下错误信息:174341.hp16042!BBL.3476.3086006480.0: 06-13-2011: Tuxedo Version 10.3.0.0, 32-bit, Patch Level (none)174341.hp16042!BBL.3476.3086006480.0: LIBTUX_CAT:590: ERROR: Unable to r...
2011-06-20 11:29:29
496
原创 CMDTUX_CAT:947: WARN: Can't shutdown server
使用tmshutdown命令关闭TUXEDO时,无法完全关闭TUXEDO,并抛出以下信息:163402.hp16042!tmshutdown.2186.3086526144.-2: 06-13-2011: Tuxedo Version 11.1.1.1.0, 32-bit163402.hp16042!tmshutdown.2186.3086526144.-2: WARN: inter...
2011-06-20 11:14:27
309
原创 使用apxs工具给apache添加模块(无需重新编译安装apache)
转自:http://www.cublog.cn/u3/105800/showart_2099945.html 下面是使用apxs工具给apache添加模块 如添加的模块:LoadModule cgi_module libexec/mod_cgi.soLoadModule cgid_module libexec/mod_cgid.so ...
2011-06-03 16:03:28
203
原创 libIce.so.34: cannot open shared object file: No such file or directory
ImportError at /libIce.so.34: cannot open shared object file: No such file or directoryRequest Method:GETRequest URL:http://127.0.0.1/Django Version:1.3Exception Type:Impo...
2011-06-03 14:21:24
1164
原创 child pid xxxxx exit signal Segmentation fault (11)
Apache的error_log:[Wed Jun 01 14:59:05 2011] [notice] child pid 28198 exit signal Segmentation fault (11)[Wed Jun 01 15:00:03 2011] [notice] child pid 28199 exit signal Segmentation fault (11...
2011-06-03 10:24:46
847
原创 DeprecationWarning: the md5 module is deprecated
Apache的error_log:/usr/local/lib/python2.6/site-packages/mod_python/importer.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5解决办法:GOOGLE下发现这是个BUG,在Red Hat Bugzill...
2011-06-02 17:37:39
370
原创 [Errno 13] Permission denied
程序在windows下运行没有任何的问题,但是在Linux下运行时却抛出IOError [Errno 13] Permission denied。Traceback发现是fd = open(file_path, 'r+b')抛出的异常。使用namei工具查看文件(包括目录)的权限,结果文件[-rw-rw-r--]、目录[drwxrwxr-x]。这就很费解了为什么有r权限,却会报Permission...
2011-06-02 10:07:30
552
原创 you don't have permission to access / on this server
项目部署到Apache Http Server上面,通过apachectl -t 检测配置文件也没有问题。可是通过浏览器访问,却出现了“you don't have permission to access / on this server”. 1、首先,查看conf.d/python.conf文件<Directory "项目路径"> Options...
2011-05-30 16:10:26
671
原创 ExtractionError: Can't extract file(s) to egg cache
ExtractionError: Can't extract file(s) to egg cacheThe following error occurred while trying to extract file(s) to the Python eggcache: [Errno 13] Permission denied: '/root/.python-eggs'...
2011-05-30 14:50:00
467
原创 Linux下安装MySQL-Python
1、下载mysql-python官网地址:http://sourceforge.net/projects/mysql-python/ 2、安装mysql-python# tar -zxvf MySQL-python-1.2.3.tar.gz# cd MySQL-python-1.2.3# whereis mysql_configmysql_config: /usr/bi...
2011-05-30 11:37:47
127
原创 Linux下Apache+Python环境搭建
一.环境说明1.系统环境CentOS release 5.4 (Final)2.软件版本Apache 2.2.3Python 2.6.6mod_python 3.3.1二.安装Apache1.如果使用Apache源码进行安装,请到http://httpd.apache.org下载所需版本。安装过程略。2.如果使用系统自带的Apache,则需要查看...
2011-05-27 15:05:43
386
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人