原创 多linux服務器之間實現文件自動複製(腳本)

多linux服務器之間實現文件自動複製(腳本)   #!/usr/bin/expectset password 1234  #密碼#downloadspawn scp /root/test.jar [email protected]:/usr

原创 Redhat linux 5.3 基於bond的heartbeat

一、設置bond 1.修改網卡 cd /etc/sysconfig/network-scripts/ cp ifcfg-eth0 ifcfg-bond0 vi ifcfg-bond0 DEVICE=bond0 ONBOOT=yes BOOT

原创 linux命令(工作中用到的,整理中)

lsof -p 進程ID | grep UDP | wc -l  統計進程所用到的端口總和   linux下查看某目錄佔用的空間大小   [root@localhost ~]# du -h -s /root437M    /root 查看

原创 分析shell實現nginx反向代理後端realserver健康檢查

    今天閱讀老男孩教育博客http://oldboy.blog.51cto.com/ 中一篇關於shell實現nginx反向代理後端realserver健康檢查的文章,根據其中一個學員朋友的思路自己寫了一個腳本。一、nginx.conf

原创 利用 mount 指令解決 Read-only file system 問題

之前幫別人處理機器的時候,發生這個問題,如果你針對 / 根目錄做寫入動作,她就會出現 Read-only file system,所以我去 google 到一篇文章:如何讓file system 變成可以write, 而不是read onl

原创 多linux服務器之間實現文件自動複製(腳本)

多linux服務器之間實現文件自動複製(腳本)   #!/usr/bin/expectset password 1234  #密碼#downloadspawn scp /root/test.jar [email protected]:/usr