差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
tech:webssh [2010/02/10 11:42] – jonathan | tech:webssh [2010/02/10 14:55] (目前版本) – jonathan | ||
---|---|---|---|
行 1: | 行 1: | ||
+ | ====== 安裝 Webssh 的方式 ====== | ||
+ | ===== Webssh Open source 方案 ===== | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | - http:// | ||
+ | ==== web-shell ==== | ||
+ | <code sh> | ||
+ | su - root | ||
+ | cd /opt/webssh | ||
+ | wget http:// | ||
+ | unzip WebShell-0.9.6.zip | ||
+ | mv WebShell-0.9.6 WebShell | ||
+ | cd WebShell | ||
+ | ./ | ||
+ | ./ | ||
+ | |||
+ | cd / | ||
+ | vi webssh.conf | ||
+ | </ | ||
+ | < | ||
+ | # web-shell | ||
+ | ProxyRequests Off | ||
+ | <Proxy *> | ||
+ | Order deny,allow | ||
+ | Allow from all | ||
+ | </ | ||
+ | ProxyPass /webshell/ http:// | ||
+ | ProxyPassReverse /webshell/ http:// | ||
+ | |||
+ | # 設定只允許 127.0.0.1 與 140.92.xxx.xxx 可以連上 | ||
+ | < | ||
+ | Order deny,allow | ||
+ | Deny from all | ||
+ | Allow from 127.0.0.1 | ||
+ | Allow from 140.92. | ||
+ | </ | ||
+ | </ | ||
+ | * https:// | ||
+ | < | ||
+ | * 使用 IE / Chrome 方向鍵< | ||
+ | * 建議使用 FireFox 然後 < | ||
+ | </ | ||
+ | |||
+ | * 如果想要開機或 webshell 無法服務時自動啟動, | ||
+ | cd /opt/webssh | ||
+ | vi webshell.sh | ||
+ | </ | ||
+ | #!/bin/bash | ||
+ | / | ||
+ | service httpd restart | ||
+ | </ | ||
+ | chmod a+x webshell.sh | ||
+ | |||
+ | cd / | ||
+ | cp mon_service.conf.default mon_service.conf | ||
+ | vi mon_service.conf | ||
+ | </ | ||
+ | : | ||
+ | webshell | ||
+ | </ | ||
+ | vi / | ||
+ | </ | ||
+ | : | ||
+ | # monitor service | ||
+ | * * * * * root / | ||
+ | </ | ||
+ | service crond restart | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | {{tag> |