RHEL 5.4 安装花生壳 phlinux 1.0
[edgen@rhel54 ~]$ su - root
口令:
[root@rhel54 ~]# cd /opt/tools/
[root@rhel54 tools]# ll | grep phlinux
-rw-rw-r-- 1 edgen edgen?? 2970276 01-11 19:12 phlinux10all.tar.gz
?
[root@rhel54 tools]# tar -zxf phlinux10all.tar.gz
[root@rhel54 tools]# 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
?
[root@rhel54 tools]# cd phlinux10all
[root@rhel54 phlinux10all]# ll
总计 4
drwxr-xr-x 2 root root 4096 2009-07-07 phlinux_package
[root@rhel54 phlinux10all]# cd phlinux_package/
[root@rhel54 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
?
[root@rhel54 phlinux_package]# tar -zxf phlinux-1.0-install.redhat.tar.gz
[root@rhel54 phlinux_package]# 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
?
[root@rhel54 phlinux_package]# cd phlinux_install/
[root@rhel54 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
?
[root@rhel54 phlinux_install]# ./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!
?
[root@rhel54 ~]# 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
?
[root@rhel54 ~]# /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!
?
[root@rhel54 ~]# vi /etc/phlinux.conf
[root@rhel54 ~]# cat /etc/phlinux.conf
?
[root@rhel54 ~]# /usr/local/phlinux/phlinux -d
Peanuthull Linux-core 1.0 by oray.net, copyright 2005
phlinux started as daemon!
?
[root@rhel54 ~]# ps -A | grep phlinux
?6734 ???????? 00:00:00 phlinux
[root@rhel54 ~]# kill 6734
[root@rhel54 ~]# ps -A | grep phlinux
?
[root@rhel54 ~]# /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!
?
[root@rhel54 ~]# service iptables stop
?
[root@rhel54 ~]# /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!
?
[root@rhel54 ~]# netstat -nap?
?
[root@rhel54? ~]# vi /etc/sysconfig/iptables
[root@rhel54? ~]# 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
...
...
[root@rhel54 ~]# /etc/init.d/iptables restart
?
[root@rhel54 ~]# vi /etc/rc.d/rc.local
[root@rhel54 ~]# cat /etc/rc.d/rc.local | grep phlinux
#/usr/local/phlinux/phlinux -d
?
[root@rhel54 ~]# tail -f /var/log/phlinux.log
?
[root@rhel54 ~]# reboot
?
端口映射,参考:http://service.oray.com/question/360.html