Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to purchase and configure DigitalOcean hosts

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to purchase and configure DigitalOcean hosts". In daily operation, I believe many people have doubts about how to buy and configure DigitalOcean hosts. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to buy and configure DigitalOcean hosts". Next, please follow the editor to study!

Enter the hostname and select the configuration

Second, choose a data center, which needs to be explained here. From the point of view of personal usage and netizens' evaluation, it is concluded that the San Francisco data center is relatively stable and directly connected to the mainland, so it is recommended to choose the San Francisco data center as shown in the picture. There is no need to select the available configuration (because the first backup service charges an extra 20%)

Third, choose the operating system you are familiar with, because small z has messed with CentOS before, so here choose the 32-bit CentOS6.5 operating system. Finally, click the create button.

4. Waiting for tens of seconds to complete the creation will automatically jump to the interface shown in the figure, indicating that the creation is successful, and then you can manage it.

Fifth, when the creation is successful, we will receive an email reminder containing the host IP, user name and password. Then use the SSH tool to connect, the first login will prompt you to change the default password, enter the default password again, and then enter the new password to change successfully.

6. Install the control panel WDCP

Among the many Chinese free VPS control panels, WDCP is recommended by individuals. Used to use the famous English free host control panel virtualmin. However, since I have installed WDCP on all of my VPS, I think it is more convenient to use Chinese. The following will explain the whole process of mutating and installing WDCP and lanmp on centos (wdcp can be downloaded from its official website wdlinunx.cn). After the following installation, the entire web environment is created, and you can log in to the WDCP background directly to create a website.

1. First set putty to utf8 encoding format (select UTF8 in the drop-down box under window- "translation), then SSH log in to VPS and do the following steps, so you can see the Chinese prompt during the installation process.

2. Get the version and installation:

The code is as follows:

Wget http://dl.wdlinux.cn:5180/lanmp_laster.tar.gz

If prompted:-bash: wget: command not found, perform wget installation: yum-y install wget, and wget again when finished.

The code is as follows:

Tar zxvf lanmp_laster.tar.gz

Sh install.sh

(wdcp is installed by default. If you only want to install lanmp in the web environment and do not want to install wdcp, you can change it to sh lanmp.sh)

A few seconds later, the installation option selection interface appears. There are 4 optional installation package options. Enter the serial number and enter:

The nginx,apache,nginx+apache application environment cannot be switched freely because it is installed independently.

4. If you install all, you can switch the nginx,apache,nginx+apache application environment freely in the background.

Select the option you need (it is recommended to choose 4), and then jump out of the php version selection. It is recommended to choose the higher version 5.3.7 (now wordpress version 3.6 or above requires php5.2.4, and there will be problems in some places if it is lower). Enter the serial number and enter.

Then there is the system automatic compilation and installation process, which takes a long time.

If your VPS is 512MB memory, compilation errors are likely to occur, usually due to PHP compilation errors, which are caused by insufficient memory. You can check the php installation log: / root/logs/lanmp_php_install.log, which is usually the following error:

The code is as follows:

Virtual memory exhausted: Cannot allocate memory

Make: * * [ext/fileinfo/libmagic/apprentice.lo] Error 1

Solution:

Open / root/lib/php.sh with vi, find the line. / configure, and add a separate line below, including the backslash:

-disable-fileinfo\

Instead of uninstalling the previous installation after saving, restart reboot first, and then rerun the installation command sh install.sh directly to continue the original installation.

After the installation is completed, if VPS is 512MB memory, you need to modify the httpd parameter, otherwise there will be insufficient memory:

Modify the httpd parameter to accommodate small memory:

Modified httpd configuration file under wdcp: / www/wdlinux/httpd-2.2.24/conf/httpd-wdl.conf

Original value:

The code is as follows:

ServerLimit 1024

StartServers 5

MinSpareServers 3

MaxSpareServers 30

MaxClients 1024

MaxRequestsPerChild 0

After modification:

The code is as follows:

ServerLimit 256

StartServers 2

MinSpareServers 2

MaxSpareServers 5

MaxClients 256

The value of MaxRequestsPerChild 50 should not be zero, it doesn't matter if it's a little higher. Other values can be modified appropriately to fit the memory size

Restart the httpd service:

The code is as follows:

Service httpd restart

At this point, the study on "how to purchase and configure DigitalOcean hosts" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report