Shared IP Cloud Host (VPS) Gaming website Service Management system WDCP

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

At present, there are a lot of domestic performance is also a good share of IP VPS, but because there is no independent IP, so the environment configuration will be more trouble.

Because I am now using a shared IP VPS, so some configuration methods to share, for your reference.

The first is the system choice, according to experience CentOS 5.6 (32-bit) system will be compatible with WDCP some, 6.2 (64-bit) of the system used several times, there are the HTTP process of suspended animation phenomenon.

After installing the system, install the WDCP, install the installation method according to the forum.

In the WDCP and one-click installation package, the software and WDCP are installed in the WWW directory by default, www This directory is also in the root directory, unless the system is installed to specify

Sometimes, perhaps the root partition space is not enough, but the data is too large, want to go to another partition or add a hard disk partition, that how to operate?

Follows

Suppose the newly added hard disk is/dev/sdb

Before and has been divided into the area and format, for/DEV/SDB1

First, create a temporary mount point

Mkdir/mnt/data

Load the new partition in, as follows

Mount/dev/sdb1/mnt/data

Stop all services First

Service Mysqld Stop

Service PUREFTPD Stop

Service Wdapache Stop

Service httpd Stop

Service Nginxd Stop

Moving data

mv/www/*/mnt/data/

Unload a newly loaded partition

Umount/dev/sdb1

Then reload into the WWW directory, as

Mount/dev/sdb1/www

Start a service

Service mysqld Start

Service PUREFTPD Start

Service Wdapache Start

Service httpd Start

Service Nginxd Start

It's done.

But also want to modify fstab this file, otherwise, after the restart, will not find the data to cause the error to occur

Add a line to the fstab, presumably as follows

/dev/sdb1/www ext3 defaults 0 0

Save exit so it's okay to start again

This assumes that the newly added disk partition is/DEV/SDB1

If this is not the case, to make the corresponding changes and adjustments can be, the other unchanged

Specifically, you can use Fdisk-l to view, or view and set when partitioning

And then mount the data disk, not to say, a lot of tutorials.

Then began to say that the sharing of IP VPS with independent IP difference operation.

1, WDCP background port settings, because the shared IP is the provider specified a number of ports for us to use, so it is not possible to have 8080 ports to everyone, we need to manually WDCP 8080 port modified for one of our available port, manually modify the background port please look down:

1. Compile file/www/wdlinux/wdapache/conf/httpd.conf with vi command

Vi/www/wdlinux/wdapache/conf/httpd.conf

2. Search 8080 commands are as follows

/8080

3. Find Listen 8080

Modify 8080 to its own port, such as 8090, and save

(Modify the command will not be, to find their own VI command to use the method!)

4. Open the modified port, for example, I have modified the use of 8090 of this port, then enter the following command

Iptables-i input-p TCP--dport 8090-j ACCEPT

5. Save, order as follows

Service Iptables Save

6.service Wdapache Restart reboot If you are not in charge, try restarting the server with reboot.

2, FTP port settings, attention, because the most shared IP VPS will give you a separate FTP port, with this FTP port map to your VPS 21 port, so generally need to use the "passive link" way to connect. This time you need to modify/www/wdlinux/etc/ Pure-ftpd.conf, the PassivePortRange after the end of the paragraph, modify the port number you can use the paragraph, note that 2 port number corresponds to 1 simultaneous connections, if you want to 2 FTP clients simultaneously linked to the FTP server, you will need to occupy 4 ports. Finally, note that these ports are added to the firewall whitelist

After a few steps, basic your VPS can be used normally.

This article is excerpted from Wdlinux Forum, reproduced please specify!

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.