金万维宽带通linux版本安装排错
两台服务器需要绑定域名,与互联网其他服务器交互,客户服务器为centos7.7 64位,客户指定要安装金万维
下载安装
yum install wget -y wget http://res.gnway.com/download/res/gnhostlinux1.3.2.tgz tar zxvf gnhostlinux1.3.2.tgz cd gnhostlinux1.3.2 ./GNDDNSCtl.sh install ./GNDDNSCtl.sh start
系统错误提示
/etc/rc.d/rc3.d/S99gnhostlinuxd: /usr/local/bin/gnhostlinux: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
这个金万维宽带通软件很久都没有更新过了,还是x86版本
安装x86组件(32位兼容层)
yum install xulrunner.i686 -y
再次运行
./GNDDNSCtl.sh start 提示 If you haven't an username, you can register one from http://www.gnway.com please input your username:用户名 please input your password:密码
查看日志
tail -f /var/log/gnhostlinux.log 系统提示未知错误 [2019-11-27 17:55:6] gnHost for Linux VER1.3.2 [2019-11-27 17:56:16] Unknow error! [2019-11-27 17:56:16] P▒~ killall gnhostlinux
查看rc都正常
ll /etc/rc3.d/ total 0 lrwxrwxrwx. 1 root root 20 Oct 14 05:54 K50netconsole -> ../init.d/netconsole lrwxrwxrwx. 1 root root 17 Oct 14 05:54 S10network -> ../init.d/network lrwxrwxrwx. 1 root root 29 Nov 26 12:57 S99gnhostlinuxd -> /etc/rc.d/init.d/gnhostlinuxd ll /etc/rc5.d/ total 0 lrwxrwxrwx. 1 root root 20 Oct 14 05:54 K50netconsole -> ../init.d/netconsole lrwxrwxrwx. 1 root root 17 Oct 14 05:54 S10network -> ../init.d/network lrwxrwxrwx. 1 root root 29 Nov 26 12:57 S99gnhostlinuxd -> /etc/rc.d/init.d/gnhostlinuxd
修改配置文件
vim /etc/gnhostlinux.conf 改为 USERNAME=用户名 PASSWORD=密码 serverIP=留空
找研发要了一个文件,覆盖到软件目录下
查看进程
ps -ef |grep -i gnhost 提示 root 33469 1 0 06:01 ? 00:00:00 gnhost(main) root 33470 33469 0 06:01 ? 00:00:00 gnhost(worker) root 34966 31407 0 06:05 pts/0 00:00:00 grep --color=auto -i gnhost
测试正常
ping vos.gnway.cc 提示 PING vos.gnway.cc (222.222.222.222) 56(84) bytes of data. ^C64 bytes from 222.222.222.222: icmp_seq=1 ttl=63 time=0.554 ms --- vos.gnway.cc ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.554/0.554/0.554/0.000 ms curl "http://ddns.gnway.com:5353/client_getIP.php" 222.222.222.222[root@server1 gnhostlinux1.3.2]# curl https://ip.cn {"ip": "222.222.222.222", "country": "陕西省西安市", "city": "电信"}
本站所有文章均可随意转载,转载时请保留原文链接及作者。