随笔分类 - Linux
摘要:1、安装依赖包 yum install -y gcc python-devel 2、安装freetds 下载地址:http://pan.baidu.com/s/1pLKtFBl tar zxvf freetds-0.82.tar.gz cd freetds-0.82 ./configure --pr
阅读全文
摘要:yum install -y openldap openldap-servers openldap-clients pam_ldap nss-pam-ldapd vsftpd slappasswd #记录备用 {SSHA}70WfjeJVZhmGy0wfSUKcOGsKPgLR7/ae cp /us
阅读全文
摘要:SSDB模块在Python使用方法 下载地址: http://pan.baidu.com/s/1bFdSQy 使用方法:
阅读全文
摘要:#get接口调用 import urllib import urllib2 get_url = "http://10.10.3.63/test?id=123&name=nba" cookie_headers = { "Cookie" : "person_id=2468" } req = urllib2.Request(url=get_url,headers=cookie_hea...
阅读全文
摘要:先移动日志文件 mv /usr/local/openresty/nginx/logs/access.log /usr/local/openresty/nginx/logs/access.log.20161024 发送信号重新打开日志文件 kill -USR1 $(cat /usr/local/ope
阅读全文
摘要:github项目地址:https://github.com/liuxianan/pinyinjs 完整demo演示:http://demo.liuxianan.com/pinyinjs/ 汉字转拼音: 云盘下载:http://pan.baidu.com/s/1bWEgUE 原文地址:http://w
阅读全文
摘要:1、安装mysql-udf-httpyum install -y libcurl*下载地址:http://pan.baidu.com/s/1nuYZqR3tar zxvf mysql-udf-http-1.0.tar.gzcd mysql-udf-http-1.0./configure --pref
阅读全文
摘要:1、安装所有依赖包yum install -y gcc ncurses ncurses-base ncurses-devel ncurses-libs ncurses-static ncurses-term ocaml-curses ocaml-curses-devel openssl-devel
阅读全文
摘要:1、环境部署 inotify-master 10.10.6.208 inotify-slave 10.10.6.149 2、两台服务器都安装rsync yum install -y rsync 3、inotify-slave部署 新建rsync用户及模块目录并更改其用户组 useradd rsync
阅读全文
摘要:yum install -y openssh-clients scp -r -P 26611 /usr/local/ssdb-20160518/ root@10.10.6.199:/usr/local/scp -r 目录 -P 端口 /usr/local/ssdb-20160518/ 要拷贝的目录
阅读全文
摘要:find -type d -name ".svn"|xargs rm -rf
阅读全文
摘要:先安装MySQL-python pip install mysqlclient (Windows) 测试代码:
阅读全文
摘要:1、下载Python3.4安装包 2、解压、编译、安装 3、创建Python3.4的链接(CentOS6.7默认安装的是Python2) 4、验证
阅读全文
摘要:mysqldump -uroot -pdsideal -t dsideal_db t_resource_info --where="res_type=1 and group_id=1 and ts>2015122115005600474 ORDER BY TS DESC LIMIT 1" --tri...
阅读全文
摘要:一、获取Access Token示例 1. 请您将以下HTTP请求直接粘贴到浏览器地址栏内,并按下回车键。https://openapi.baidu.com/oauth/2.0/authorize?response_type=token&client_id=L6g70tBRRIXLsY0Z3HwKq...
阅读全文
摘要:yum install hdparm参数: -a 设定读取文件时,预先存入块区的分区数,若不加上选项,则显示目前的设定。 -A 启动或关闭读取文件时的快取功能。 -c 设定IDE32位I/O模式。 -C 检测IDE硬盘的电源管理模式。 -d 设定磁盘的DMA模式。 -f 将内存缓冲区的数据写入硬盘,...
阅读全文
摘要:location ~.*\.(js|css|html|png|jpg)${ expires 3d;}expires 3d; //表示缓存3天expires 3h; //表示缓存3小时expires max; //表示缓存10年expires -1; //表示永远过期。如果设置为-...
阅读全文
摘要:repair table mysql.proc;
阅读全文

浙公网安备 33010602011771号