ssh 连接慢问题 问题:使用putty通过ssh连接linux服务器需要等待一段时间才能够显示输入密码 排查: ssh -v root@10.8.18.247 跟踪发现耗时在下图红色部分 解决办法: 修改sshd_config中GSSAPIAuthentication为no
postgresql 创建数据库提示错误 template1 is being accessed by other users There are 1 other session(s) using the database. 原因:有一个其他的session正连在template1上,而这个是模板库,PG不允许在新建库时有其他连接连在上面 解决办法:kill template1上的进程或者使用其他模板
Could not create JarEntryRevision 程序在jboss中运行提示 Could not create JarEntryRevision.... 查了资料了解到是struts在jboss中的一个bug 解决办法: 用下面链接中的文件xwork-core-2.2.3.1.jar直接替换xwork-core-2.2.3.jar http://dldx.csdn.net/fd.php?i=197737917022001&s=d6ee0
- cvc-complex-type.2.3: Element 'web-app' cannot have character 程序在jboss中运行提示 Multiple annotations found at this line: - cvc-complex-type.2.3: Element 'web-app' cannot have character [children], because the type's content type is element-only.
PostgreSQL批量导入数据 COPY命令 COPY命令:为PostgreSQL批量导入数据 任务:将excel表中的数据导入到PostgreSQL数据库的某张表中。 工具:PostgreSQL客户端pgAdmin。 步骤: 1.将excel表格字段,按照postgresql 数据库中表的字段顺序来整理数据,并保存为csv文件。 2.用记事本打开csv文件,另存为UTF-8格式。 3.使用PgAdmin客户端链接postgr
运行yum提示pycurl.so undefined symbol: CRYPTO_set_locking_callback 自编译安装了libcurl后,只行yum报错: /usr/lib64/python2.6/site-packages/pycurl.so: undefined symbol: CRYPTO_set_locking_callback 原因是因为yum要使用的python库被pycurl无法找到 执行 ldconfig -v | grep libcurl 发现有2个lib
iptables限制同一IP连接数 当WEB站点受到严重的cc攻击,我们可以用iptables来防止web服务器被CC攻击,实现自动屏蔽IP的功能。 1.系统要求 (1) LINUX 内核版本:2.6.9-42ELsmp或2.6.9-55ELsmp(其它内核版本需要重新编译内核,比较麻烦,但是也是可以实现的)。 (2) iptables版本:1.3.7 2. 安装 安装iptables1.3.7和系统内核版本对应的内核模块
字符串转换UnicodeDecodeError: 'utf8' 1、python字符串转换UnicodeDecodeError: 'utf8' codec can't decode byte 0xc4 in position 10: invalid continuat 解决办法:
opensuse安装文件拷贝完成后无法进行图像界面安装 环境:笔记本,双显卡 opensuse安装文件拷贝完成后无法进行图像界面安装 解决办法: 1)进入救援模式完成后续安装 2)安装完成后 cp /etc/X11/xorg.conf.install /etc/X11/xorg.conf 3)重启机器就可以了
pgpool authentication with pgpool failed for user I created pool_hba.conf and pool_passwd to enable md5 authentication through pgpool-II but it does not work. Why? Probably you made mistake somewhere. For your help here is a table which describe
利用dumpall导出数据库,再恢复,恢复后数据库的大小和原来的大小不等 yu 1、没有运行VACUUM删除数据库标记为删除的信息。数据库总是不断地在执行删除,更新等操作。良好的空间管理非常重要,能够对性能带来大幅提高。在postgresql中用于维护数据库磁盘空间的工具是VACUUM ,其重要的作用是删除那些已经标示为删除的数据并释放空间。 2、postgresql索引膨胀问题,重新构建索引后正常
自定义check_mk监控插件过程中遇到的问题1 服务端session数目结果为空 [root@LY-1611-E1 checks]# check_mk -d 10.8.18.53|fgrep -A 5 postgressession >> >> 本地运行脚本执行结果有数据 [root@LY-1611-E3 plugins]# ./postgressession >> 91 排查发现是由于psql没有加绝对路径
check_mk自定义监控插件 客户端: /usr/lib/check_mk_agent/plugins/filecount #!/bin/bash #DIRS="/var/log /tmp" DIRS="/var/log" echo '>>' for dir in $DIRS do # ls $dir | wc --lines count=$(ls $dir | wc --lines)