存档

2009年2月 的存档

备份PuTTY 配置

2009年2月28日 admin 没有评论

Putty 備份
Putty 主要是將東西都存在 registry 裡面, 所以要備份主要就是備份 registry 裡面的資料.

執行 → regedit
到 HKEY_CURRENT_USER\Software\SimonTatham\PuTTY
在此目錄下有 Sessions 目錄: 設定連線的項目、設定值
再來是 SshHostKeys 目錄: 紀錄所有曾設定過的 Remote Host Public Key
簡單說, 就是將 PuTTY 這整個 registry 匯出來就對了~

参考:

http://plog.longwin.com.tw/post/1/392

http://blog.istef.info/2007/10/25/backup-puttys-settings/

分类: 收集 标签:

Public key for glibc-common-2.5-24.el5_2.2.x86_64.rpm is not installed

2009年2月26日 admin 没有评论

rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

分类: 收集 标签:

tcp状态含义

2009年2月24日 admin 没有评论

netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'

LAST_ACK 55 等待关闭确认状态
SYN_RECV 76 已收到连接请求SYN状态
CLOSE_WAIT 25 等待关闭连接状态,等待来自应用程序的关闭要求。
ESTABLISHED 49 已建立连接状态
FIN_WAIT1 25 应用程序要求关闭连接,断开请求FIN已经发出状态。
FIN_WAIT2 3 已关闭半连接状态,等待对方关闭另一个半连接。
CLOSING 46 双方同时决定关闭连接状态
SYN_SENT 7 已发出连接请求SYN状态,等待确认ACK。
TIME_WAIT 499 等待超时状态

分类: Linux 标签:

make时出现cannot find -lz 错误

2009年2月23日 admin 没有评论

是因为没有可用的zlib
# yum install zlib-devel

分类: Linux 标签:

fso无权限

2009年2月23日 admin 没有评论

需要给写权限

分类: Windows 标签:

http proxy 协议研究

2009年2月23日 admin 没有评论

似乎只能自己sniffer协议规则了,反正http的协议比较了解

分类: Linux, Windows 标签:

转:第 6 章 BIND 9 配置参考 (5)

2009年2月20日 admin 没有评论

http://blog.chinaunix.net/u1/39411/showart_306773.html

分类: Linux, 收集 标签:

一个前辈的QQ空间,[apache]支持suexec功能配置备忘

2009年2月18日 admin 没有评论

http://qzone.qq.com/blog/59815689-1197258325

分类: LAMP, 收集 标签:

转:Linux注册Apache为系统服务

2009年2月18日 admin 没有评论

http://blog.csdn.net/yafeikf/archive/2009/01/15/3786306.aspx

vi /etc/rc.d/rc.local
增加:/usr/local/httpd/bin/apachectl start

2:[注册为Service]
cp /usr/local/httpd/bin/apachectl /etc/rc.d/init.d/httpd
vi httpd
找到:#!/bin/sh
另起一行,增加:
# chkconfig: 35 70 30
# description: Apache
Ok~
然后注册服务:chkconfig --add httpd
----
启动服务:service httpd start
停止服务:service httpd stop
重新启动:service httpd restart

又搜了一下其他的方法:
mysql设为linux服务

cp /usr/local/mysql5/share/mysql/mysql.server /etc/init.d/mysqld
chkconfig --add mysqld
chkconfig --level 2345 mysqld on
chown mysql:mysql -R /usr/local/mysql5/
service mysqld start

apache设为linux服务

cp /usr/local/apache2/bin/apachectl /etc/init.d/httpd
vi /etc/init.d/httpd

在在#!/bin/sh后面加入下面两行
#chkconfig:345 85 15
#description: Start and stops the Apache HTTP Server.

然后
chmod +x /etc/rc.d/init.d/httpd
chkconfig --add httpd
分类: Linux, 收集 标签:

一个人对linux有些研究的人的博客

2009年2月17日 admin 没有评论

http://kaiser.gznow.cn/blog.php?uid=2

分类: Linux, 收集 标签: