CentOS 7.0 Install peanut shell

Source: Internet
Author: User
Tags net domain

No wget first download get command yum-y install wget

1. Download Peanut shells
[Email protected] ~]# wget http://download.oray.com/peanuthull/linux/phddns-2.0.6.x86_64.tar.gz

2. Unzip the tar.gz

[Email protected] ~]# tar zxvf phddns-2.0.6.x86_64.tar.gz
phddns-2.0.6.x86_64/
Phddns-2.0.6.x86_64/readme
Phddns-2.0.6.x86_64/phddns

Go to unzip Directory
[Email protected] ~]# CD phddns-2.0.6.x86_64
View all files extracted from the directory
[[email protected] phddns-2.0.6.x86_64]# ls--all
.
..
Phddns
Readme

3. Execute the configuration file

[Email protected] phddns-2.0.6.x86_64]#./phddns

Just follow the official line.

After installation, run under Terminal: Phddns will appear following a series of prompt questions: First step: Enter server address (press Enter use phddns60.oray.net): This is the domain name that prompts you to enter the Peanut shell server, If the site does not have an announcement to update the domain name, this step directly returns, will use the default phddns60.oray.net domain name. Step Two: Enter your Oray account: This is to prompt you to enter the Peanut Shell website registered user name, please enter according to the actual situation. Step three: Password: This is to prompt you to enter the Peanut Shell website registered user name corresponding password, please enter according to the actual situation.  Fourth Step: Network Interface (s): [eth0] = [ip:192.168.33.195] [lo] = [ip:127.0.0.1] Choose One (default eth0): This is to configure your server's network parameters, the peanut shell software will automatically check and output your network situation. The eth0 section may not be the same as above, which is your actual network settings. If you have two NICs, eth0 and eth1, and you want to use eth1 to bind the peanut shells, enter eth1 here and then enter.  If you have only one network card, or if you want to use eth0 to bind the peanut shell, enter it directly here. Fifth step: Log to use (Default/var/log/phddns.log): This is prompting you to enter the storage location of the peanut Shell software log, use the absolute path to specify the log file name. If you enter directly, you will use/var/log/phddns.log to save the log. Sixth step: Save to configuration file (/etc/phlinux.conf)? (Yes/no/other): This is the save file name that prompts you to enter the above configuration. If you enter yes or a direct carriage return,/etc/phlinux.conf will be used as the saved file name for the configuration. If you enter other, you will be prompted to specify the file name yourself, using an absolute path to specify the profile name. If you enter no, do not save the above configuration, the next time you re-use the peanut shell, you need to manually specify the configuration file or again through interactive mode settings.  After the sixth step is completed, the screen will appear in turn: defonstatuschanged okdomainsregistered usertype This means that the peanut shell software is registered and running successfully. Through the/ETC/RC.local Add/usr/bin/phddns-c/etc/phlinux.conf-d can be started automatically run it:-C is specified by the configuration file, if not by default, you need to fill in the "-D" to run the daemon you can use the Ps-ef | grep Phddns to see if there is a process related to the peanut shell software. After the first installation configuration, you need to modify the relevant configuration, you can edit the configuration file yourself, and then terminate the relevant process, with/USR/BIN/PHDDNS-C/etc/phlinux.conf-d start again, you can press the modified configuration file content to run.

If you accidentally delete the configuration file, please run the above command again

Force Delete file Rm-f/etc/phlinux.conf

Default configuration file path
/etc/phlinux.conf

Give an example

[Email protected] ~]# vi/etc/phlinux.conf
[Settings]
Szhost = Phddns60.oray.net
Szuserid = aaa//The user name of the peanut shell here
szuserpwd = ****//plaintext password look right
Nicname = ENP2S0//This default appears to be the name of the video card
Szlog =/var/log/phddns.log//log location

Here is an example of adding a boot boot

[[email protected] ~]# ls=anaconda-ks.cfgphddns-2.0.6.x86_64phddns-2.0.6.x86_64.tar.gz//into peanut shell extract directory [email protected ] ~]# CD Phddns-2.0.6.x86_64[[email protected] phddns-2.0.6.x86_64]# lsphddnsreadme//configuration peanut shell for boot boot [[email protected] phddns-2.0.6.x86_64]#./phddns-c/etc/phlinux.conf-d192.168.1.103nic bind Successphddns started as daemon!

CentOS 7.0 Install peanut shell

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.