花生壳For Linux安装步骤

我想要提醒大家的是,这个客户端是通过6060端口与服务器进行UDP心跳包的发送。包的信息如下:

17:19:35.734433 IP 192.168.1.7.32773 > 61.152.96.119.6060: UDP, length 20
17:19:35.784568 IP 61.152.96.119.6060 > 192.168.1.7.32773: UDP, length 24

所以,大家一定要记得把防火墙打开。

关于花生壳linux客户端的安装方法,官方网站已经写得很详细了,大家可以去下面的地址查查:
http://www.oray.net/help/PeanutHull/Help_PeanutHull_3_PhForLinux.htm

方便查看,将上述地址的内容引用如下
<code>

花生壳For Linux

一、花生壳For Linux安装步骤

<!--[if !supportLists]-->1.              <!--[endif]-->下载适合您的unix/linux版本的安装包文件,使用root身份解压缩安装包

# tar -zvxf phlinux-1.0-install.redhat.9.0.tar.gz

 

<!--[if !supportLists]-->2.              <!--[endif]-->安装包文件将解压缩至phlinux_install目录中

# cd phlinux_install

 

<!--[if !supportLists]-->3.              <!--[endif]-->执行安装脚本

# ./install.sh

安装时可能提示错误: “ error while loading shared libraries: libstdc++.so.5”

解决方法:yum install libstdc++.so.5


<!--[if !supportLists]-->4.              <!--[endif]-->执行安装脚本后,将自动以互动配置模式的phlinux程序

输入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):


输入花生壳服务器地址,直接回车

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):



以上操作完成,系统将自动登录花生壳服务器,用户可以通过web方式查看当前花生壳客户端的运行状态.
花生壳客户端使用 6160端口提供web检测服务,例如 http://192.168.0.1:6160/
此监测页面将完全的反应当前花生壳的运行状态.

<!--[if !vml]--><!--[endif]-->

注:以互动配置模式运行phlinux程序并配置完成后,如监视web页面显示花生壳的在线状态为 "离线 / 认证失败",可能是由于您输入的用户名或密码错误,请重新以互动设置模式运行程序配置

# /usr/local/phlinux/phlinux -i


二、花生壳For Linux程序参数说明

phlinux [参数]

参数列表
--interact
-i,
互动配置模式运行
程序以互动模式提示用户输入必要的参数

--daemon
-d,
后台进程模式运行
程序在后台进程中运行,可以使用 kill -9 <PID> 关闭

--help
-h,
显示帮助.

三、常见问题

<!--[if !supportLists]-->·                  <!--[endif]-->如何以每次开机时自动运行花生壳客户端?
使用RedHat Linux,/etc/rc.d/rc.local 文件中加入一行内容 /usr/local/phlinux/phlinux -d
使用Freebsd,创建一个文件/etc/rc.local并加执行权限,在此文件中加入一行内容 /usr/local/phlinux/phlinux -d

<!--[if !supportLists]-->·                  <!--[endif]-->以后台进程模式运行花生壳客户端程序,如何退出?
首先用ps -A查看所有进程列表,记住phlinuxpid
再使用kill -9 <PID> 杀掉此进程

<!--[if !supportLists]-->·                  <!--[endif]-->如何手动修改登陆的用户名及密码
您可以直接编辑/etc/phlinux.conf文件,对登陆用户名及密码进行修改。


</code>

转载于:https://www.cnblogs.com/ableid/archive/2009/04/29/1446496.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值