渝水峦山

更多的时候,只是喜欢一个人静静的写代码.不断尝试与学习.

导航

2016年12月15日 #

nginx日常运维

摘要: pid丢失办法: 1、查找nginx进程ID 2、将进程ID写入pid 3、重启nginx 阅读全文

posted @ 2016-12-15 18:28 waner 阅读(237) 评论(0) 推荐(0) 编辑

2016年10月18日 #

阿里云运维相关代码整理

摘要: CDN日志分析访问次数最多的IP TOP10 官方帮助页面:https://help.aliyun.com/knowledge_detail/40102.html 阅读全文

posted @ 2016-10-18 16:01 waner 阅读(152) 评论(0) 推荐(0) 编辑

2015年10月19日 #

批量创建SQL Server分区文件

摘要: 1 declare @table varchar(100) 2 declare @i int 3 set @table = 'v3_yqsd_report' 4 set @i=1 5 while @i<=30 6 begin 7 exec('alter database '+@table+' ad... 阅读全文

posted @ 2015-10-19 23:30 waner 阅读(139) 评论(0) 推荐(0) 编辑

2015年7月16日 #

Centos 6.X基本维护操作

摘要: 设置163源,全新最小化安装时,更改源需先yum install wgetmv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupcd /etc/yum.repos.d/wget http://mirr... 阅读全文

posted @ 2015-07-16 15:19 waner 阅读(183) 评论(0) 推荐(0) 编辑

2015年7月14日 #

python 版本升级(CentOS) 从2.6.6升级到2.7.6

摘要: 安装必须的包yum install zlib-devel bzip2-devel pcre-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel下载安装2.7.x版本Python1 wget http://pyt... 阅读全文

posted @ 2015-07-14 21:08 waner 阅读(195) 评论(0) 推荐(0) 编辑

2015年7月7日 #

Python发布包到Pypi

摘要: 本地打包:python setup.py sdist上传Pypi:python setup.py register sdist upload 阅读全文

posted @ 2015-07-07 13:46 waner 阅读(181) 评论(0) 推荐(0) 编辑

2015年4月23日 #

mac OS X 配置Python+Web.py+MySQLdb环境

摘要: MAC默认支持Python 2.7所以不用安装。1.安装pipsudo easy_install pip2.安装Web.pysudo pip install Web.py3.安装MySQLdbsudo pip search MySQL_pythonsudo pip install MySQL_pyt... 阅读全文

posted @ 2015-04-23 00:03 waner 阅读(307) 评论(0) 推荐(0) 编辑

2015年2月17日 #

centos 快速搭建vpn

摘要: PPTP VPN 一键安装包 centos 5: wget http://soft.kwx.gd/vpn/pptpd.sh sh pptpd.sh centos 6: wget http://www.hi-vps.com/shell/vpn_centos6.sh sh vpn_centos6.sh 自行安装流程 1、检查服务器是否有必要的支持。如果检查结果没有这些支持的话,是... 阅读全文

posted @ 2015-02-17 00:34 waner 阅读(59) 评论(0) 推荐(0) 编辑

C# 部分语法总结(入门经典)

摘要: class Program { static void Main(string[] args) { init(); System.Console.ReadKey(); } #region 接口 ... 阅读全文

posted @ 2015-02-17 00:21 waner 阅读(482) 评论(0) 推荐(0) 编辑

2014年12月24日 #

Centos 反向代理创建资料

摘要: 1. yum update2. sh centos.sh3. sh upgrade_nginx.sh nginx 1.7.04. cd /usr/local/nginx/conf/ upload /vhost/* nginx.conf5.upstream.conf 添加多个子域名6.... 阅读全文

posted @ 2014-12-24 13:41 waner 阅读(117) 评论(0) 推荐(0) 编辑