How does the Aliyun server work?

Source: Internet
Author: User
Tags apache php mysql version pack php mysql zip domain name registration mysql database aliyun

Aliyun use, the first purchase; the second step is to configure the environment Ah, that is an empty host, the need to format the installation software, the third step on the domain name registration to resolve the domain name server IP over the past, the fourth step, with tools to connect the server, the code passed up (htdocs?)

First of all, thanks to the Aliyun forum, thanks to my friends for my help, because 3 days ago, I was a Linux system is ignorant of people, in this forum, asked a lot of questions, including moderators, ordinary members of many people's enthusiastic answer, through slowly trying to finally find a very convenient way, Install WDCP package, configure Linux Server, have control Panel, very suitable for novice, can build new website, also can transfer other virtual space website to here.

Why choose WDCP, rather than the official phpwind of a key installation package, the reason is very simple, WDCP have control Panel, Phpwind No, WDCP do not bring phpwind procedures, not everyone wants this program, right?

Here, I suggest you in the official installation of your site before, you can open a 5-day trial Aliyun space, first try to practice, and then formally buy space.

This is not a tutorial tutorial, only for people who do not know anything about Linux!

The following red font, are the instructions, you can copy directly, and then to the Xshell right button sticky paste.

1, the opening of a Aliyun space, the system can choose CentOS 6.3 64-bit security reinforced version;

2. Download Xshell and Xftp

3. Linux System Mount data disk

Linux System Mount Data disk

Applicable system: Linux (Redhat, Centos,debian,ubuntu)

* Linux Cloud Server data disk is not partitioned and formatted, you can follow the following steps to partition and format the operation.

The following operation will divide the data disk into one partition to use.

1, view the data disk

You cannot see the data disk until you have partitioned and formatted the data disk, and you can view it using the "fdisk-l" command by using the "df–h" command. The following figure:

Friendly tip: If you execute fdisk-l command and find no/dev/xvdb indicating that your cloud service does not have a data disk, then you do not need to mount, this tutorial is not applicable to you

2. Partition the data disk

Execute the "fdisk-s 56/dev/xvdb" command to partition the data disk;

According to the prompts, enter "n", "P" "1", two times carriage return, "Wq", the partition begins, will soon complete.

3, view the new partition

Using the "fdisk-l" command, you can see that the new partition XVDB1 has been built.

4, format the new partition

The new partition is formatted using the "MKFS.EXT3/DEV/XVDB1" command, and the formatted time varies depending on the size of the hard disk.

(can also decide to choose Other file formats, such as EXT4, etc.)

5, add the partition information

Write new partition information using the "Echo '/dev/xvdb1/mnt ext3 defaults 0 0 ' >>/etc/fstab" (without quotes) command.

Then use the "cat/etc/fstab" command to view that the following information indicates a write success.

Note: ubuntu12.04 does not support barrier, so the correct wording is: Echo '/dev/xvdb1/mnt ext3 barrier=0 0 0 ' >>/etc/fstab

* If you need to mount the data disk to a separate folder, such as the separate use of the Web page, you can modify the/mnt section of the above command

6. Mount New Partition

Use the "mount-a" command to mount a new partition, and then use the "df-h" command to view it, with the following information stating that the mount is successful and you can start using the new partition.

The specific steps are as follows:

(1), connect the server with Xshell

(2), check the disk information instructions: fdisk–l (carriage return) (L have a space before, this does not make sense, is to follow the video tutorial to do, you can see for yourself)

(3), zoning, instructions:

Fdisk-s 56/dev/xvdb (return) (this you still copy, paste to Xshell go)

N (carriage return)

P (carriage return)

1 (carriage return)



Wq (carriage return)

(4), after the completion of the partition, check instructions: fdisk-l (in fact, this step does not make sense)

(5), format, instruction: MKFS.EXT3/DEV/XVDB1 (/dev before there is a space, you will see a% of increasing, need a little time to complete)

(6), because WDCP, is installed under the/www folder, so mount the WWW folder, but the root directory does not have a WWW folder, first to create a, directive:

Cd.. Car (Back to the previous directory, until the root directory, ...) preceded by a space)

PWD (carriage return) (check, is not returned is/, in the root directory)

mkdir www (enter) (Create a WWW directory, in the root directory, the WWW front has a space)

(7), add zoning information, instructions: Echo '/dev/xvdb1/www ext3 defaults 0 0 ' >>/etc/fstab (carriage return) (can be copied directly to the red font, sticky paste. command to write new partition information, the screen is not reflected, but you use Cat/etc/fstab (enter), this command check, you can see the success of the information. )

(8), Mount:

Df-h (carriage return) (first check the case without mount, what it looks like)

Df–h (Enter) (check whether the instructions to complete the mount, if successfully completed, the last line, should be:/dev/xvdb1 xxg xxm xxg 1%/www, so code)

4. Install WDCP one-button installation package

Compile the installation online, put the installation package under/home, the latest version of WDCP (v2.5.7) installation, reference post:

(1), with Xshell connection server, install unzip command, instructions:

Yum Install unzip (carriage return)

If, Midway prompts whether to continue, select Y (Enter)

(2), into the home directory, instructions: cd/home (enter) (/home before a space)

(3), download the source code compiled installation: instructions (directly copied to the Xshell can), instructions are as follows:

wget (Enter) (Download GZ compressed package, to the home directory)

Tar zxvf lanmp_laster.tar.gz (carriage return) (Decompression compression pack)

SH (Enter) (Start installation)

After about more than 10 seconds, a setup step that allows you to choose 1-5 is available, I use Apache PHP MYSQL, is the first, so you need to press 1 (enter) (here according to your choice, 1 is Apache, 2 is Nginx, I was selected 1), 2.5.7 Next also has an option, is to choose the MySQL version, I also use the 1, a slightly lower version of that, and then the most complete installation process, need 30-50 minutes, and finally back to [root@xxxxxxxxx home] This prompt, the installation is complete, you can enter the WDCP system.

5, into the WDCP system, create a new website, create MySQL data, create FTP can Oh, reference forum:

-----------------------------------------------------below is how to move the station----------------------------------------------------

6, for the new site, this is enough, for the relocation site, I would like to expand here to talk about, I hope that the Linux system of friends who are ignorant of the help!

(1), through WDCP backstage, create a new website, domain name, website directory, according to your own settings, this new Web site directory, under the/www/web, you can find your own directory, such as ABC;

(2), put your previous site, compressed into a zip compression package, such as, through xftp, upload to the/www/web/abc below;

(3), with Xshell into this directory, instructions: CD/WWW/WEB/ABC (enter)

(4), decompression, instructions: Unzip (enter), the completion of the decompression, you can see through the XFTP

(5), through the WDCP backstage, create a MySQL database, username, database name, password, and you have the same server before, such as user name, database called BBS;

(6), put your site before the SQL database, through the xftp to/www/wdlinux/mysql-5.1.69/var/bbs below, please note that the BBS folder here, you just created the MySQL database folder, mysql-5.1.69 is now I write this article, WDCP version of the MySQL, may change later oh, you are based on the actual to find it, very easy.

(7), how can there be a Web site of the SQL database? This need to find you before the space business, let him help you pack it, on a file, is a. SQL end, for example, we call Bbs.sql

(8), through the Xshell connection server, enter the following instructions:

<1>.mysql-u (username)-P (Enter) (Explanation: The general user name is root, password is your MySQL password, you can set up through the WDCP background, assuming your password is: 123456, then this instruction is Mysql-uroot- p123456 (enter), note two-before there are spaces, completed, is to enter the MySQL. )

<2>.mysql>use Database (Enter) (Explanation: According to the above settings, here should be entered the specific instructions are use BBS (enter), BBS before the space)

<3>.mysql>source SQL file (carriage return) (interpretation: According to the above settings, the specific instructions should be entered here is Source/www/wdlinux/mysql-5.1.69/var/bbs/bbs.sql (carriage return), /www Before the space, enter your database into the back, this method is somewhat, not subject to the phpMyAdmin of the database size restrictions)

<4>. done, so, your website files, and database, have moved to the Aliyun server, and because your MySQL username, database name and password and before the space is consistent, so you do not have to modify the Web site config file, directly to the normal operation.

OK, everything was last night, see if you can run the site properly?

Write these things, I have been in the field of operation, tried, seemingly is possible, but I did not aliyun here to record the domain name, so, also hope that we also check together.

There are many tutorials in the jar for beginners, but in my opinion, most are slightly "abstruse" a bit, to have mastered some Linux knowledge person, is very simple to understand, to 3 days ago I, slightly abstruse, after 3 days of summary attempt, applied for 2 small, opened a 5-day Test server, I write down my own experience, are the most basic things, for 100% of people do not understand the Linux system is the most appropriate, including where the need for space, where need to enter, are marked, I hope to be the same new hands with the novice, help.

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: 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.