ubuntu下花生壳的安装

tar -zxvf phlinux-1.1-install.Ubuntu.8.04.tar.gz

之后进入解压后的目录进行安装,他提供了一个安装脚本

sudo ./install.sh
Making directory /usr/local/phlinux...
Copying data...
Runing phlinux for first configuration...
Peanuthull Linux-core 1.1 by oray.net, copyright 2006
No user configuration found, entering interactive mode automatically!
Peanuthull Linux-core Interactive startup.
Please input service address(press ENTER use phservice2.oray.net):
Note: Server address will automatically be retrieved by webservice!
      this is just a backup address while you cannot connect webservice.
Please input server address(press ENTER use PH031.Oray.Net):
Please input username(press ENTER use ): 这儿输入花生壳的用户名
Please input password:   这儿输入花生壳的密码
Save to configuration file (/etc/phlinux.conf)?(yes/no): y
Log /var/log/phlinux.log opened.
2010/04/25 22:35:35.164| Init phservice2.oray.net with user cdy-server/******
2010/04/25 22:35:35.471| Initservice OK!
.....

安装完花生壳之后,要将本机的IP设置为固定IP,然后再路由器里面打开HTTP:80的端口映射,通过如下网址查看花生壳状态:

http://localhost:6160

然后就可以测试虚拟域名了,内网外网测试均OK。


一些用到的操作
重新以互动设置模式运行程序配置
# /usr/local/phlinux/phlinux   -i
花生壳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文件,对登陆用户名及密码进行修改。
           
              # /usr/local/phlinux/phlinux   -i

猜你喜欢

转载自ylq365.iteye.com/blog/781036
今日推荐