------------------------------------------------------------------------------------------Nginx启动:cd
/usr/local/nginx/sbin./nginxTomcat启动:cd /home/cms...
分类:
其他好文 时间:
2014-05-16 04:19:46
阅读次数:
243
问题1
[root@localhost ~]# gluster peer status
Connection failed. Please check if gluster daemon is operational.
原因:未开启glusterd服务
解决方法:开启glusterd服务
/etc/init.d/glusterd start
问题2
[root@loc...
分类:
其他好文 时间:
2014-05-16 02:50:16
阅读次数:
391
简介zabbix是一个基于WEB界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案;zabbix能监视各种网络参数,保证服务器系统的安全运营;并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题;监控平台的组成数据采集-->数据存储-->数据展示和分..
分类:
其他好文 时间:
2014-05-16 01:57:27
阅读次数:
368
Android有三类窗口
应用程序窗口 (Application Window): 包括所有应用程序自己创建的窗口,以及在应用起来之前系统负责显示的窗口。
子窗口(Sub Window):比如应用自定义的对话框,或者输入法窗口,子窗口必须依附于某个应用窗口(设置相同的token)。
系 统窗口(System Window): 系统设计的,不依附于任何应用的窗口,比如说,状态栏(Status ...
分类:
移动开发 时间:
2014-05-15 23:55:37
阅读次数:
623
打开 /usr/local/php/etc/php-fpm.conf
调大以下两个参数(根据服务器实际情况,过大也不行) 5120 600
分类:
其他好文 时间:
2014-05-15 21:12:11
阅读次数:
206
server{if(!-e$request_filename){rewrite^(.*)$/index.phplast;}}如果if没有放在location时,在做memc缓存时,在错误日志里会提示以下信息2014/05/1210:45:51[error]11520#0:*325726srcache_fetch:cachesenttruncatedresponsebodywhilesendingtoclient,client:192.168.3.124,..
分类:
其他好文 时间:
2014-05-15 19:02:44
阅读次数:
350
#!/bin/bash
#function:cutnginxlogfilesshell
#cp/usr/local/nginx/logs/access.log/usr/local/nginx/logs/access.log.bak
log_cut_path="/var/log/nginx"
log_files_path="/usr/local/nginx/logs/"
log_files_dir=${log_cut_path}$(date-d"yesterday"+"%Y")/$(date-d"yesterd..
分类:
其他好文 时间:
2014-05-15 18:49:50
阅读次数:
244
一、环境ubuntu12.04.4nginx 1.6.0mariadb 10.0更新系统补丁sudo
apt-get updatesudo apt-get dist-upgrade -y挂载swap分区dd
if=/dev/zeroof=/media/fasthdd/swapfile.img bs=...
分类:
数据库 时间:
2014-05-15 17:23:21
阅读次数:
1622
A - Number With The Given Amount Of Divisors
Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
Given the number n, find the smallest...
分类:
其他好文 时间:
2014-05-15 13:31:36
阅读次数:
343
1.慢查询日志:slow_launch_time=2查询大于某个时间的值(单位:s)slow_query_log=on/off开启关闭慢查询日志slow_query_log_file=/opt/data/host-slow.log慢查询日志位置2.连接数:max_connectionsMySQL最大连接数back_log当连接数满了后,设置一个值,允许多少个连接进入等待堆..
分类:
数据库 时间:
2014-05-15 12:44:41
阅读次数:
385