摘要: pycurl模块用法: (这块是抄的,引用地址:http://blog.csdn.net/xsj_blog/article/details/52102652) c = pycurl.Curl() #创建一个curl对象 c.setopt(pycurl.CONNECTTIMEOUT, 5) #连接的等 阅读全文
posted @ 2019-04-10 13:25 Leslie'sblogs 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 统计nginx访问日志,access.log形式: (1)将被访问的域名和次数存入数据库中 (2)将下载量排名前10的列出来 方法:读取access.log日志将其所需要信息截取出来生成字典,利用字典键的唯一性统计出下载次数,并将字典进行排序,截取出排名前10的域名和下载次数 #!/usr/bin/ 阅读全文
posted @ 2019-04-10 13:19 Leslie'sblogs 阅读(583) 评论(0) 推荐(0) 编辑
摘要: 1、在/root目录下面创建bakup目录 2、创建脚本 添加一下内容: 标红的地方可以根据具体情况更改目录路径、帐号密码、端口等 3、创建计划任务 阅读全文
posted @ 2019-04-09 17:18 Leslie'sblogs 阅读(558) 评论(0) 推荐(0) 编辑
摘要: 数据库迁移到媒体云rds上,评论无法显示。 问题在于默认生成评论语句会在0行开始插入数据,需要在sql_mode里面将NO_AUTO_VALUE_ON_ZERO参数取消掉 解决方案: 在rds管理界面修改参数: 将NO_AUTO_VALUE_ON_ZERO参数取消掉,不需要进行数据库的重启立即生效, 阅读全文
posted @ 2019-04-09 17:16 Leslie'sblogs 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 安装cobbler以及相关的软件 yum install epel-release -y 启动相关服务 通过cobbler check 核对当前设置是否有问题 The following are potential configuration items that you may want to f 阅读全文
posted @ 2019-04-09 17:14 Leslie'sblogs 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 以源码安装为例: 目录环境: /usr/local/php/etc/php-fpm.conf /usr/local/nginx/conf/nginx.conf 一、修改配置 # vim /usr/local/php/etc/php-fpm.conf 末行添加:pm.status_path = /ph 阅读全文
posted @ 2019-04-09 17:13 Leslie'sblogs 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 实际工作中用到Zookeeper集群的地方很多, 也碰到过各种各样的问题, 在这里作个收集整理, 后续会一直补充; 其中很多问题的原因, 解决方案都是google而来, 这里只是作次搬运工; 其实很多问题都跟配置有关, 只怪自己没好好读文档; 问题列表: 1. 一台 zk 节点重启后始终无法加入到集 阅读全文
posted @ 2019-03-21 10:39 Leslie'sblogs 阅读(769) 评论(0) 推荐(0) 编辑
摘要: 1、环境介绍 系统 服务 IP Centos6.5 jira-02 xxx.16.1.93 2、环境准备 [root@jira-02 ~]# chkconfig --level 2345 iptables off [root@jira-02 ~]# service iptables stop [ro 阅读全文
posted @ 2019-02-26 10:30 Leslie'sblogs 阅读(1996) 评论(0) 推荐(0) 编辑
摘要: 1、环境介绍 系统 服务 IP Centos6.5 Gitlab 172.16.1.141 2、安装Gitlab [root@uat2-app-01 software]# cd /home/software [root@uat2-app-01 software]# ./bitnami-gitlab- 阅读全文
posted @ 2019-02-26 10:29 Leslie'sblogs 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 1、环境介绍 系统 服务 IP Centos6.5 glusterfs01 10.10.3.3 Centos6.5 glusterfs02 10.10.3.4 2、环境准备 1、检查fuse是否安装 [root@uat2-app-01 software]# modprobe -l|grep fuse 阅读全文
posted @ 2019-02-26 10:28 Leslie'sblogs 阅读(525) 评论(0) 推荐(0) 编辑