人妖在线一区,国产日韩欧美一区二区综合在线,国产啪精品视频网站免费,欧美内射深插日本少妇

新聞動(dòng)態(tài)

Linux中安裝oray服務(wù)的步驟分享

發(fā)布日期:2022-04-05 08:33 | 文章來源:源碼中國(guó)

1、首先安裝必要的開發(fā)包

[root@wangheng.org ~] apt-get install gcc g++ automake autoconf

2、下載phddns-2.0.2.16556.tar.gz到某一個(gè)目錄

[root@wangheng.org ~]# wget http://download.oray.com/peanuthull/phddns-2.0.2.16556.tar.gz

3、解壓所有文件

[root@wangheng.org ~]# tar zxvf phddns-2.0.2.16556.tar.gz

4、進(jìn)入目錄并編譯
[root@wangheng.org ~]# cd phddns-2.0.2.16556
[root@wangheng.org phddns-2.0.2.16556]# aclocal
[root@wangheng.org phddns-2.0.2.16556]# autoconf
[root@wangheng.org phddns-2.0.2.16556]# automake
[root@wangheng.org phddns-2.0.2.16556]# ./configure
[root@wangheng.org phddns-2.0.2.16556]# make
[root@wangheng.org phddns-2.0.2.16556]# cd src
[root@wangheng.org src]# ls -l phddns
-rwxr-xr-x 1 root root 80968 Aug 2 11:18 phddns

5、執(zhí)行編譯好的程序并配置(默認(rèn)使用/etc/phlinux.conf,如果不存在這個(gè)文件則自動(dòng)進(jìn)入交互配置)

[root@wangheng.org src]# ./phddns
輸入服務(wù)器地址,如無特殊情況可使用默認(rèn)值
Enter server address(press ENTER use phlinux3.oray.net):

輸入您的Oray帳號(hào)名稱
Enter your Oray account:

對(duì)應(yīng)的Oray帳號(hào)密碼
Password:

選擇幫定的網(wǎng)卡,如無特殊,默認(rèn)即可
Network interface(s):
eth0:192.168.141.18
lo:127.0.0.1
Choose one(default eth0):

選擇日志保存到哪個(gè)文件
Log to use(default /var/log/phddns.log):

保存配置文件,選擇yes則直接保存到/etc/phlinux.conf,輸入other可以指定文件
Save to configuration file (/etc/phlinux.conf)?(yes/no/other):

接下來程序?qū)⒁呀换ツJ介_始運(yùn)行
192.168.141.18
NIC bind success
OnStatusChanged okConnecting
OnStatusChanged okDomainListed
OnDomainRegistered skyvense22.gicp.net
OnStatusChanged okDomainsRegistered
UserType: 0
看到上面這些就表示登錄成功,這個(gè)時(shí)候可以按ctrl+c先退出程序


6、將phddns拷貝到你希望的位置
[root@wangheng.org src]# cp phddns /usr/bin/

7、以后臺(tái)模式啟動(dòng)花生殼并檢查運(yùn)行情況

[root@wangheng.org ~]# /usr/bin/phddns -c /etc/phlinux.conf -d
phlinux started as daemon!
[root@wangheng.org ~]# tail /var/log/phddns.log
2011/08/02 11:28:58.256| ExecuteUpdate OK, BeginKeepAlive!
2011/08/02 11:29:59.354| SendKeepAlive() 8208
2011/08/02 11:30:00.355| RecvKeepaliveResponse() Data comes, OPCODE:8272
2011/08/02 11:30:00.356| Keepalive response received, client ip: 116.***.123.96
2011/08/02 11:31:00.447| SendKeepAlive() 8208
2011/08/02 11:31:01.450| RecvKeepaliveResponse() Data comes, OPCODE:8272
2011/08/02 11:31:01.450| Keepalive response received, client ip: 116.***.123.96

8、退出花生殼

查看進(jìn)程ID
[root@wangheng.org ~]# ps -A | grep phddns
13731 ? 00:00:00 phlinux
讓后臺(tái)進(jìn)程退出
[root@wangheng.org ~]# kill -9 13731

9、將花生殼加到系統(tǒng)啟動(dòng)時(shí)運(yùn)行
[root@wangheng.org ~]# vi /etc/rc.local
在文件的末尾加上一行:/usr/bin/phddns -c /etc/phlinux.conf -d

二、花生殼Linux版本命令行參數(shù)說明

[root@wangheng.org ~]# /usr/bin/phlinux -h
Peanuthull Linux-core 2.0 by oray.com, copyright 2011
Peanuthull Linux-core Help
–first-run
-f, run for the first time
用于首次啟動(dòng)時(shí)配置參數(shù)

–interact
-i, run as interactive mode
program will request for necessary parameters.
this mode will automatically enabled at first running,
or your configuration file has been lost.
啟動(dòng)交互模式

–daemon
-d, run as a daemon
program will quit after put itself to background,
and continue running even you logout,
you can use kill -9 <PID> to terminate.
后臺(tái)模式

–config
-c, run with configuration file
program will run with the file
指定使用哪一個(gè)配置文件

–user
-u, run as the user
program will run as the user
以指定用戶啟動(dòng)后臺(tái)進(jìn)程

–help
-h, print this screen.
Please visit http://www.oray.com for detail.

轉(zhuǎn)載自王恒的博客

海外服務(wù)器租用

版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。

實(shí)時(shí)開通

自選配置、實(shí)時(shí)開通

免備案

全球線路精選!

全天候客戶服務(wù)

7x24全年不間斷在線

專屬顧問服務(wù)

1對(duì)1客戶咨詢顧問

在線
客服

在線客服:7*24小時(shí)在線

客服
熱線

400-630-3752
7*24小時(shí)客服服務(wù)熱線

關(guān)注
微信

關(guān)注官方微信
頂部