- 浏览: 558269 次
- 性别:
- 来自: 北京
最新评论
-
di1984HIT:
学习了~~~~
服务器大量TIME_WAIT -
springdata_spring:
可以参考最新的文档:如何在eclipse jee中检出项目并转 ...
maven常用命令 -
李小斌_2014:
我也遇到了,现在完美解决。
ORA-01422: 实际返回的行数超出请求的行数 -
啸风8023:
...
tomcat启动报错 -
fke153:
这个问题确实很坑人啊,学习了
ORA-01422: 实际返回的行数超出请求的行数
文章列表
#!/bin/bash
TARGETDIR=/BACKUP/mysql/fc_log
rm -fr ${TARGETDIR}/old
mv ${TARGETDIR}/lastest ${TARGETDIR}/old
/usr/bin/xtrabackup_55 --defaults-file=/etc/my.cnf --backup --host=127.0.0.1 --port=1233 --defaults-group=mysqld2 --datadir=/var/lib/mysql --target-dir=${TARGETDIR}/lastest
/us ...
./mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
cp support-files/mysql.server /etc/rc.d/init.d/mysqld
chmod 700 /etc/init.d/mysqld
chkconfig --add mysqld
chkconfig --level 345 mysqld on
grant all privileges on *.* to taovo@"%" iden ...
tomcat启动报错
- 博客分类:
- tomcat
Caused by: java.lang.ClassNotFoundException: javax.management.modelmbean.ModelMBeanNotificationBroadcaster not found in org.apache.catalina.loader.StandardClassLoader{urls=[file:/opt/deploy/l
jdk 版本过低
memchache出现问题
error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
解决
>whereis libevent-2.0.so.5
libevent-2.0.so.5: /usr/local/lib/libevent-2.0.so.5
> ldd /usr/local/bin/memcached (ldd指令不熟悉的去查看下)
libevent-2.0.so.5 => no ...
遇到MySQL硬盘的问题,解决方法来自:http://blog.itpub.net/26355921/viewspace-1273862/
摘抄如下:
突然接到开发打来电话说MySQL数据库执行SQL报错,让排查一下原因。
登陆MySQL服务器看了一眼错误日志:
140904 12:06:20 [ERROR] /usr/local/mysql5.5/bin/mysqld: Incorrect key file for table '/tmp/#sql_5608_1.MYI'; try to repair it
140904 12:06:20 [ER ...
mysql update sql
- 博客分类:
- mysql
select userno,sum(small_posttaxprize) t1 from lottery_order where order_result_status in (3,4) group by userno ;
select userno, sum(commisionPrizeAmt+prizeAmt) t2 from lottery_caselot_buy group by userno;
select userno,sum(small_posttaxprize) total from lottery_order where order_res ...
mysqldump 操作
- 博客分类:
- mysql
mysql导出某个表的表结构
mysqldump -uroot -p密码 -d 数据库名 表名
导出数据库中,某个表的数据
mysqldump -uroot -p密码 数据库名 表名
导出数据库中,某个表的某条数据
mysqldump -uroot -pxxx lotcenter t_order_statistics --no-create-info--where="orderid='Y150114000000022422'" >lotcenter.sql
--no-create-info 不导出表结构
1.导出结 ...
linux查看某个进程的线程数
- 博客分类:
- linux
1.根据进程号进行查询:
# pstree -p 进程号
# top -Hp 进程号
cat /proc/${pid}/status
# pstree -p `ps -e | grep server | awk '{print $1}'`
# pstree -p `ps -e | grep server | awk '{print $1}'` | wc -l
#ps -Lf
请求对方用nginx做了代理:但是error.log报
upstream prematurely closed connection while reading response header from upstream, client
找了半天,host没set进去
原来配置
location / {
proxy_pass http://pool_xxx;
proxy_redirect off;
proxy_set_header Host $http_hos ...
iptables 增加
- 博客分类:
- 防火墙
新增防火墙 规则
iptables -A INPUT -i em1 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i em1 -p icmp -j ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -i em1 -m state --state NEW -m tcp -p tcp --dport 52222 -j ACCEPT
iptables -A INPUT -i em1 -j REJECT --reject-with icmp ...
nginx concat 模块
- 博客分类:
- nginx
mod_concat模块由淘宝开发,目前已经包含在tengine中,并且淘宝已经在使用这个nginx模块。不过塔暂时没有包含在nginx中。这个模块类似于apache中的modconcat。如果需要使用它,需要使用两个”?”问号.
来个范例:
http://example.com/??style1.css,style2.css,foo/style3.css
server {
listen 80;
server_name www.ttlsa.com;
root /da ...
Nginx添加模块(非覆盖安装)
- 博客分类:
- nginx
来源
http://www.linuxidc.com/Linux/2011-05/35348.htm
原已经安装好的nginx,现在需要添加一个未被编译安装的模块:
nginx -V 可以查看原来编译时都带了哪些参数
原来的参数:
--prefix=/app/nginx
添加的参数:
--with-http_stub_status_module --wit ...
centos 从6.2升级到6.5的过程中
yum update -y 出现如下错误
Error: Package: matahari-host-0.4.4-11.el6.x86_64
解决方法
yum -y remove qpid-cpp-client