摘要: python源码和其他一些书籍,命名各种个性,没有一个比较统一的命名规范。于是总结了一些,供参考。模块名:模块应该使用尽可能短的、全小写命名,可以在模块命名时使用下划线以增强可读性。同样包的命名也应该是这样的,虽然其并不鼓励下划线。主要是考虑模块名是与文件夹相对应的,因此需要考虑文件系统的一些命名规则的,比如Unix系统对大小写敏感,而过长的文件名会影响其在Windows\Mac\Dos等系统中的... 阅读全文
posted @ 2016-01-29 10:54 侠之大者kamil 阅读(551) 评论(0) 推荐(0) 编辑
摘要: httpd-2.2.15-39.el6.centos.x86_64.rpmhttpd - 2.2.15- 39.el6.centos. x86_64 .rpm软件名称- 软件版本- 发布次数- 硬件平台 扩展名直接安装 [root@lk_Cloud xzdz]# rpm -ivh jdk-8u31- 阅读全文
posted @ 2016-01-28 20:25 侠之大者kamil 阅读(642) 评论(0) 推荐(1) 编辑
摘要: 下载libevent memcached 指定libevent软件提供的库文件的安装位置 补充:启动 /usr/local/bin/memcached 选项 客户端测试(数据的存与取) 阅读全文
posted @ 2016-01-28 20:21 侠之大者kamil 阅读(201) 评论(0) 推荐(0) 编辑
摘要: Nginx或者Squit反向代理到两台tomcat服务器tomcat使用memcachedtomcat连接memcached工具 cp session/*.jar /usr/local/tomcat/lib/ session 172.30.13.100与172.30.13.200提供memcache 阅读全文
posted @ 2016-01-28 20:18 侠之大者kamil 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1.用户认证 客户端访问限制deny 客户端地址; 拒绝访问allow 客户端地址; 允许访问 rpm -q httpd-tools yum -y install httpd-tools user htpasswd -h [root@lk_Cloud ~]# htpasswd -c /usr/loc 阅读全文
posted @ 2016-01-28 20:16 侠之大者kamil 阅读(735) 评论(0) 推荐(0) 编辑
摘要: nginx 反向代理 vim nginx.conf http { ..... upstream "tomcatweb" { server 172.30.13.199:8080; server 172.30.13.100:8080; } server { listen 80; location / { 阅读全文
posted @ 2016-01-28 20:09 侠之大者kamil 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Nginx基本使用 下载源码包http://nginx.org/http://nginx.org/en/download.html [root@t-fxj01-v-szzb ~]# groupadd www[root@t-fxj01-v-szzb ~]# useradd -r -g www -s / 阅读全文
posted @ 2016-01-28 20:08 侠之大者kamil 阅读(457) 评论(0) 推荐(0) 编辑
摘要: Last login: Wed Jan 27 20:33:21 on console liukun-MBP:~ kamil$ cd ~/.ssh/ liukun-MBP:.ssh kamil$ ls id_rsa id_rsa.pub known_hosts liukun-MBP:.ssh kami 阅读全文
posted @ 2016-01-27 22:20 侠之大者kamil 阅读(1628) 评论(0) 推荐(0) 编辑
摘要: CentOS官方镜像不提供nginx,http://nginx.orghttp://nginx.org/en/linux_packages.html#stableyum install nginxyum -y install php php-fpm/etc/nginx/ ... 阅读全文
posted @ 2016-01-27 14:40 侠之大者kamil 阅读(320) 评论(0) 推荐(0) 编辑
摘要: Homebrew方便获得各类实用工具,比如 wgethttp://brew.sh/index_zh-cn.htmlruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"Home... 阅读全文
posted @ 2016-01-27 14:36 侠之大者kamil 阅读(126) 评论(0) 推荐(0) 编辑