- 博客(4)
- 收藏
- 关注
原创 python 检测主机端口状况
今天看到python 的网络编程,顺便写个小程序实践一下。脚本功能: 运用python 程序,向服务器发送socket 请求,根据请求状态实现对linux 主机的监控。程序代码:#!/usr/bin/python2.6import socketimport reimport sysimport MySQLdbdef check_server
2013-07-11 16:50:04 1096
原创 导出linux man 帮助
导出txt 版man -t test |col -b > man-test.txt导出pdf 版man -t test |ps2pdf - test.pdf
2013-05-31 10:56:08 609
原创 postgres 增加用户及远程连接
yum install postgres-* 1 : Add user and create database sudo -u postgres psqlcould not change directory to "/root"psql (8.4.9)Type "help" for help.postgres=# CREATE USER tes
2012-04-18 12:22:36 1640
原创 Nginx 访问控制
Nginx access control一 :Based on the users 1 yum install httpd # install httpd creat htpasswd command2 htpasswd -c /usr/local/nginx/conf/htpasswd test # create
2012-04-17 23:13:51 686
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人