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/
rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
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 等待超时状态
是因为没有可用的zlib
# yum install zlib-devel
似乎只能自己sniffer协议规则了,反正http的协议比较了解
http://blog.chinaunix.net/u1/39411/showart_306773.html
http://qzone.qq.com/blog/59815689-1197258325
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
http://kaiser.gznow.cn/blog.php?uid=2