自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 资源 (3)
  • 收藏
  • 关注

原创 Linux 源码安装subversion+apache,支持https访问

#####先备上安装,后续写明步骤一、安装依赖包及下载软件包1、安装yum -y install make openldap-devel ntp vim-enhanced gcc gcc-c++ gcc-g77 flex bison autoconf bzip2-devel ncurses-devel openssl-devel libtool* zlib-devel libxml

2017-03-08 18:21:52 887

原创 cent os 6.8 php 5.6 安装ffmpeg扩展

在网上看了很多文章,安装之后,重启php,总是报错,结合网上文章,自己测试发现一套可以使用的方法注:必须安装ffmpeg,然后在安装php ffmpeg扩展(版本的各种问题,选择用rpm包安装)下面是安装步骤:一、安装ffmpegrpm -ivh http://www.mirrorservice.org/sites/apt.sw.be/redhat/el6/en/x86_64/rp

2017-03-02 15:39:54 4481 2

原创 Linux查找目录下文件包含关键字

#coding=utf-8import osimport rec_dir = []txt_files = []def search_files(dir,key): dir = dir c_dir.append(dir) os.chdir(dir) all_files = os.listdir(os.curdir) keys = re.compile

2017-02-24 11:50:26 1168

翻译 python生成随机验证码

#!/usr/bin/env python#-*- coding:utf-8 -*-import randomcode = []for i in range(0,6): if i == random.randint(0,6): code.append(str(i)) else: M = (random.randint(65,90))

2017-02-24 11:47:38 566

原创 zabbix添加任务计划和sshd文件修改key

UserParameter=sshd,sudo awk '/PasswordAuthentication/{if ( $2 == "no" ) {print "OK"} else {print "NOT OK"}}' /etc/ssh/sshd_configUserParameter=sshdroot,sudo awk '/PermitRootLogin/{if ( $2 == "no" )

2017-02-20 11:39:30 629

原创 OS模块

os.mkdir() #创建目录os.makedirs() #创建多级目录os.rmdir() #删除目录os.removedirs() #删除多级目录os.listdir #查看目录os.getcwd #返回当前路径os.chdir() #切换目录

2017-02-17 17:23:15 305

原创 python字符串

s为字符串 s.isalnum() #所有字符都是数字或者字母,为真返回Ture,否则返回False s.isalpha() #所有字符都是字符返回True,否则返回False s.isdigit() #所有字符都是数字返回True,否则返回False

2017-02-17 16:25:20 292

原创 python模块

random#生成随机字符

2017-02-17 16:23:19 274

原创 python内建函数

python内建函数

2017-02-17 15:17:25 779 1

原创 python3 爬煎蛋ooxx妹子图

import reimport urllib.requestimport randomimport osimport http.serverimport http.clientfrom urllib.error import URLError, HTTPErrorimport urllib.parseproxy = [] #定义代理IP列表def change_proxy(

2017-01-06 18:14:06 44970 2

原创 Cent os mysql主从同步问题

查看从库报错 Last_SQL_Error: Could not execute Update_rows event on table bbs.cdb_myposts_21; Can't find record in 'myposts_21', Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event's master lo

2016-08-10 14:27:14 511

转载 apache启动脚本

apache启动的时候,后面是空白,不会显示OK,将本文的内容替换覆盖就OK了#!/bin/bash## Licensed to the Apache Software Foundation (ASF) under one or more# contributor license agreements.  See the NOTICE file distributed wi

2016-08-03 16:08:11 448

原创 zentao(禅道)迁移

由于公司需要把机房所有机器迁移到阿里云ESC上,顺便写个禅道迁移禅道版本:开源版8.2.4系统版本:cent os6.5 64bit一、停用禅道服务,把web服务停掉,或者把域名解析停掉,防止数据不一至二、同步禅道目录到新服务器上面(使用rsync)注意:不要只同步web访问目录,要把整个zentaopms都同步过去。三、备份数据库并导入新的数据库

2016-07-18 17:32:06 4162

原创 confluence迁移

由于公司需要把机房所有机器迁移到阿里云ESC上,顺便写个confluence迁移confluence版本是5.1破解版系统版本centos6.5 64bit一、首先确认在源服务器上confluence安装的路径,一共两个目录,如果你安装的时候是默认安装的,应该在/var/atlassian /opt/atlassian俩个目录        本人的路径都放在/data/conf

2016-07-18 17:17:50 6331 1

原创 php yar扩展json错误

编译安装php yar扩展时出现下面错误,网上找了找说要安装json扩展,可是不管用,看下/usr/local/src/yar-1.2.5/packagers/json.c文件发现里面会使用ext/json/php_json.h文件这个文件在安装好的php目录下,我的目录是/usr/local/php/include/ext/    在这个目录下没有发现json目录,从php相对应的解压包中拷

2016-06-30 14:03:34 620

原创 Cent os ssh启动问题

/etc/init.d/sshd 开启秘钥认证的UsePAM yes 选项,重启ssh服务会报下面的错误/etc/init.d/sshd restartStopping sshd:                                             [  OK  ]Starting sshd: /etc/ssh/sshd_config line 97: Unsu

2016-06-02 12:50:02 6121

原创 Centos6.5安装git1.9.0+gitolite权限控制

公司开发人员越来越多,每次合代码都会出现很多问题,而且代码的越来越多,占用很大空间,迁移和备份浪费人力和时间。有开发人员提出使用git来管理代码,个人在网上查看了一些关于git的资料。发现git的很多优点,具体大伙去网上搜索下。一、安装git服务yum -y install zlib-devel openssl-devel perl cpio expat-devel gettext

2016-04-07 21:25:48 775

原创 apache启动脚本

源码安装的apache服务,启动不会显示OK,更换脚本就可以了#!/bin/bash## Licensed to the Apache Software Foundation (ASF) under one or more# contributor license agreements.  See the NOTICE file distributed with# this w

2016-04-07 18:26:03 768

原创 Linux单向pint通

俩台同网段的Cent os只能单向ping通问题解决1、查看防火墙和selinux2、查看/proc/sys/net/ipv4/icmp_echo_ignore_all文件的值是什么     1代表禁用ping,0代表开启echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all

2016-04-07 18:22:40 900

原创 Cent os 6.5 zabbix_server2.4.7源码安装

个人习惯软件下载目录/usr/local/src1、下载需要的软件包cd /usr/local/srcyum -y install gcc gcc-c++ autoconf httpd mysql-server mysql-devel net-snmp-devel curl-devel unixODBC-devel php-xml php-gd php-mbstring libss

2016-04-06 17:26:55 719

原创 cent os svn服务器搭建

进入公司,发现公司开发员工每个人用svn客户端工具链接svn,都具有管理权限,所有目录都可以看见,这样很容易造成误操作。后来跟开发人员商量了一下,重新部署svn服务器1.yum安装svn服务器,这里个人感觉rpm的就满足需求,没有使用源码yum install -y subversion  2.创建svn版本库svnadmin create /home/svn_da

2015-11-05 10:26:24 544

原创 Cent os 6.4 Cobbler搭建

刚进公司,听同事提到cobbler,之前只知道有个PXE,后来在网上查找了一些资料,自己找了台服务器测试了一下Cobbler             部署环境 :                                   cobbler-server dell PowerEdge C6220                                 cobb

2015-01-22 13:57:44 1132

yar-1.2.5.tgz

yar-1.2.5

2016-07-13

msgpack-0.5.7

msgpack

2016-07-13

git-1.9.0.tar.gz

2016-07-13

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除