EdgenHuang 发表于 2013-1-15 14:01:57

RHEL 5.4 安装花生壳 phlinux 1.0

$ su - root
口令:
# cd /opt/tools/
# ll | grep phlinux
-rw-rw-r-- 1 edgen edgen   2970276 01-11 19:12 phlinux10all.tar.gz
 
# tar -zxf phlinux10all.tar.gz
# ll | grep phlinux
drwxr-xr-x 3 root  root       4096 2009-07-07 phlinux10all
-rw-rw-r-- 1 edgen edgen   2970276 01-11 19:12 phlinux10all.tar.gz
 
# cd phlinux10all
# ll
总计 4
drwxr-xr-x 2 root root 4096 2009-07-07 phlinux_package
# cd phlinux_package/
# ll
总计 2972
-rw-r--r-- 1 root root 378945 2006-08-21 phlinux-1.0-install.fc5.tar.gz
-rw-r--r-- 1 root root 396597 2005-11-25 phlinux-1.0-install.freebsd.4.1.tar.gz
-rw-r--r-- 1 root root 370139 2005-11-25 phlinux-1.0-install.freebsd.5.4.tar.gz
-rw-r--r-- 1 root root 375003 2005-11-25 phlinux-1.0-install.freebsd.6.0.tar.gz
-rw-r--r-- 1 root root 731402 2005-11-25 phlinux-1.0-install.redhat.tar.gz
-rw-r--r-- 1 root root 352508 2005-11-25 phlinux-1.0-install.suse9.0.tar.gz
-rw-r--r-- 1 root root 396278 2008-06-04 phlinux-1.1-install.ubuntu.8.04.tar.gz
 
# tar -zxf phlinux-1.0-install.redhat.tar.gz
# ll
总计 2976
-rw-r--r-- 1 root root  378945 2006-08-21 phlinux-1.0-install.fc5.tar.gz
-rw-r--r-- 1 root root  396597 2005-11-25 phlinux-1.0-install.freebsd.4.1.tar.gz
-rw-r--r-- 1 root root  370139 2005-11-25 phlinux-1.0-install.freebsd.5.4.tar.gz
-rw-r--r-- 1 root root  375003 2005-11-25 phlinux-1.0-install.freebsd.6.0.tar.gz
-rw-r--r-- 1 root root  731402 2005-11-25 phlinux-1.0-install.redhat.tar.gz
-rw-r--r-- 1 root root  352508 2005-11-25 phlinux-1.0-install.suse9.0.tar.gz
-rw-r--r-- 1 root root  396278 2008-06-04 phlinux-1.1-install.ubuntu.8.04.tar.gz
drwxr-xr-x 3 1000 users   4096 2005-11-25 phlinux_install
 
# cd phlinux_install/
# ll
总计 1688
-rwxr-xr-x 1 1000 users     274 2005-11-09 install.sh
-rwxr-xr-x 1 1000 users 1708045 2005-11-04 phlinux
-rw-r--r-- 1 1000 users     220 2005-11-25 phlinux.conf
drwx------ 2 1000 users    4096 2005-11-25 webadmin
 
# ./install.sh
Making directory /usr/local/phlinux...
Copying data...
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 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 ): edgenhuang
Please input password:

Save to configuration file (/etc/phlinux.conf)?(yes/no): yes
Log /var/log/phlinux.log opened.

2011/01/11 19:36:53.617| Init phservice2.oray.net with user edgenhuang/******
CHttpBase::Connect() m_sock->Connect Failed
2011/01/11 19:37:13.618| Initservice Failed!
 
# ll /usr/local/phlinux/
总计 1680
-rwxr-xr-x 1 root root 1708045 01-11 19:42 phlinux
drwx------ 3 root root    4096 01-11 19:34 webadmin
 
# /usr/local/phlinux/phlinux -i
Peanuthull Linux-core 1.0 by oray.net, copyright 2005
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 edgenhuang.gicp.net): edgenhuang
Please input password:

Save to configuration file (/etc/phlinux.conf)?(yes/no): yes
Log /var/log/phlinux.log opened.
2011/01/11 19:57:15.917| Init phservice2.oray.net with user edgenhuang/******
CHttpBase::Connect() m_sock->Connect Failed
2011/01/11 19:37:13.618| Initservice Failed!
 
# vi /etc/phlinux.conf
# cat /etc/phlinux.conf
 
# /usr/local/phlinux/phlinux -d
Peanuthull Linux-core 1.0 by oray.net, copyright 2005
phlinux started as daemon!
 
# ps -A | grep phlinux
 6734 ?        00:00:00 phlinux

# kill 6734
# ps -A | grep phlinux
 
# /usr/local/phlinux/phlinux
Peanuthull Linux-core 1.0 by oray.net, copyright 2005
Log /var/log/phlinux.log opened.

2011/01/11 20:04:12.689| Init phservice2.oray.net with user edgenhuang/******
CHttpBase::Connect() m_sock->Connect Failed
2011/01/11 19:37:13.618| Initservice Failed!
 
# service iptables stop
 
# /usr/local/phlinux/phlinux
Peanuthull Linux-core 1.0 by oray.net, copyright 2005
Log /var/log/phlinux.log opened.

2011/01/11 20:05:14.126| Init phservice2.oray.net with user edgenhuang/******
2011/01/11 20:05:14.208| Initservice OK!
 
# netstat -nap 
 
# vi /etc/sysconfig/iptables
# cat /etc/sysconfig/iptables
...
...
-A INPUT -p udp -m udp --dport 1038 -j ACCEPT
-A INPUT -p udp -m udp --dport 53 -j ACCEPT
-A INPUT -p udp -m udp --sport 53 -j ACCEPT
-A INPUT -s phservice2.oray.net -j ACCEPT
-A INPUT -s PhLinux3.Oray.Net -j ACCEPT
...
...
# /etc/init.d/iptables restart
 
# vi /etc/rc.d/rc.local
# cat /etc/rc.d/rc.local | grep phlinux
#/usr/local/phlinux/phlinux -d
 
# tail -f /var/log/phlinux.log
 
# reboot
 
端口映射,参考:http://service.oray.com/question/360.html
页: [1]
查看完整版本: RHEL 5.4 安装花生壳 phlinux 1.0