wget http://www.oray.cn/peanuthull/download/phlinux10all.tar.gz
二.解压缩
Centos 5.3下使用 phlinux-1.0-install.fc5.tar.gz 这个包.
tar zxvf phlinux10all.tar.gz cd phlinux10all/ cd phlinux_package/ tar zxvf phlinux-1.0-install.fc5.tar.gz cd phlinux_install/
三.安装
sh install.sh
输入web服务的地址,直接回车
Runing phlinux for first configuration...
Peanuthull Linux-core 1.0 by oray.net, copyright 2005
No user configuration found, entering interactive mode automatically!

Peanuthull Linux-core Interactive startup.
Please input service address(press ENTER use phservice.oray.net):

输入花生壳服务器地址phlinux3.oray.net ,直接回车
Please input server address(press ENTER use PH031.Oray.Net):

此处提示输入您的花生护照登陆名
Please input username(press ENTER use ):

此处提供输入花生护照登陆密码
Please input password:

系统提示是否保存配置文件,在这里输入yes回车.
Save to configuration file (/etc/phlinux.conf)?(yes/no):
执行安装脚本后,将自动以互动配置模式的phlinux程序,按提示输入服务器信息和花生壳的注册用户名和密码.
最后提示保存文件的时候,输入YES确认保存.
四.防火墙(iptables)配置
vi /etc/sysconfig/iptables
添加
-A INPUT -p udp -m udp --dport 6160 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 6160 -j ACCEPT
然后保存设置并重新启动iptables:
service iptables restart
五.访问
以上操作完成,系统将自动登录花生壳服务器,用户可以通过web方式查看当前花生壳客户端的运行状态.
花生壳客户端使用 6160端口提供web检测服务,例如 http://192.168.0.1:6160/
此监测页面将完全的反应当前花生壳的运行状态.

0a6f32e2fd58c4256f6ab3a61e96d981.gif
六、花生壳For Linux程序参数说明
phlinux [参数]
参数列表
--interact
-i, 互动配置模式运行
程序以互动模式提示用户输入必要的参数

--daemon
-d, 后台进程模式运行
程序在后台进程中运行,可以使用 kill -9 <PID> 关闭
--help
-h, 显示帮助.

常见问题
  • 如何以每次开机时自动运行花生壳客户端?
    使用RedHat Linux,在/etc/rc.d/rc.local 文件中加入一行内容 /usr/local/phlinux/phlinux -d
    使用Freebsd,创建一个文件/etc/rc.local并加执行权限,在此文件中加入一行内容 /usr/local/phlinux/phlinux -d
  • 以后台进程模式运行花生壳客户端程序,如何退出?
    首先用ps -A查看所有进程列表,记住phlinux的pid
    再使用kill -9 <PID> 杀掉此进程
  • 如何手动修改登陆的用户名及密码
    您可以直接编辑/etc/phlinux.conf文件,对登陆用户名及密码进行修改。
  • 花生壳日志保存路径
/var/log/phlinux.log
为什么花生壳无法登陆?
花生壳使用的通信端口是TCP:80,6160和UDP:6060(方向:OUT),请确认防火墙没有把这几个通信端口封掉。