Aliyun host Linux Server configuration steps detailed

Source: Internet
Author: User
Tags chmod ftp file cloud hosting ftp file transfer phpmyadmin aliyun
When it comes to cloud hosting, we must be familiar with the most famous brand in China--Ali Cloud, come from behind it by a lot of stationmaster is sought after, its stability and service let it's price ratio straight up, now Aliyun the lowest end configuration cloud host annual fee only need 550 yuan, in similar products is the most sexual price. If you want to make a small station, and want to speed up, Aliyun is also a good choice. Used Aliyun stationmaster all know, Aliyun host is need oneself to configure , some stationmaster have exaggeration to say "do not have certain technology, best do not use Aliyun". In fact, configure Aliyun host is not very difficult , as long as the method of this article step by step to do it.
The first step: remote connection Aliyun host.
Download Xshell and xftp and install. These 2 software can be downloaded to the website. Xshell is a powerful security terminal emulation software that supports SSH1, SSH2, and the Telnet protocol of the Microsoft Windows platform, which makes it easy to remotely log on to Aliyun hosts. Xftp is a powerful sftp, FTP file transfer software based on MS Windows platform, which can upload files to the host.
The installation of these 2 software is not mentioned here. Let's look at how to use these two software.
First, open Xshell
Second, set the cloud server login information, click Authentication (the new version may be "User authentication"). Fill in the Aliyun host username and password.
Third, set the server account password. Click "Connect" again, fill in "host" place to fill in the IP address of the Aliyun host you buy.
Set up character set encoding. Click "Terminal" and then select "Utf-8″" in the "encoding" option. Then press OK to save the configuration. Then you start connecting to the host.
Five, after the connection of the Aliyun host Lushan face.
Here, we connect remotely to the Aliyun host. Aliyun server is pure state, so only see this black panel, the software is required to install themselves.
Step two: Use Aliyun's own partition tool auto_fdisk.sh to partition and format and mount the data disk.
This tool is brought by default and does not need to be downloaded for installation. Its function is to "automatically detect whether there is a data disk that has not been partitioned, format the new data disk and mount it automatically." ”
Connected to the host, we can input ll in the above 2 letters, you will see the following figure:
We can see the auto_fdisk.sh from the above picture , We will use this tool to partition and format the data disk, it is fully automatic. (Of course, you can also use this tool to partition, if you are a master of Linux, you can directly through the command to partition)
Next, we type: Bash auto_fdisk.sh and then start partitioning and formatting. After the partition is successful, you re-enter: Fdisk-l can see the new partition, as shown below:

In the next section, we will make a system configuration.

The third step: Configure the System--linux a key to install the Web environment full raiders.
One-click Installation Package Download : Click here to download
The code is as follows Copy Code
Installation Instructions
1, This installation package contains the software and version of:
nginx:1.0.15, 1.2.5, 1.4.4
apache:2.2.22, 2.4.2
mysql:5.1.73, 5.5.35, 5.6.15
php:5.3.18, 5.4.23, 5.5.7
PHP Extensions: memcache, Zend Engine/opcache
ftp: (yum/apt-get installation)
phpwind:8.7 GBK
phpmyadmin:4.1.8
2, please use the latest one-click installation package script installed, previous versions have bugs, will cause installation of abnormal and installation of the environment chaos.
3, the implementation of a key installation package (./install.sh), will automatically clean up before the first-click installation package installed environment.
If you have already installed a key installation package, perform the installation again, and if important data is available, back up the/alidata directory yourself.
4, a key installation package will install the software in the/alidata directory.
If your system does not have a data disk, the one-click installation package installs the software into the system/alidata directory.
If your system has a data disk, and you have not formatted a mounted data disk. The one-click installation package automatically formats the first data disk and mounts it in the/alidata directory.
If your system has a data disk, and the first data disk is formatted and mounted. The one-click installation package will mount the first data disk into the/alidata directory again, without affecting the use of your previous mount directory.
If your system has a data disk and the data disk is formatted, the data disk is not mounted. The one-click installation package will mount the first data disk to the/alidata directory.
5, How to uninstall a key installation package?
You can perform the following command to complete the uninstall:
chmod 777-r sh-1.3.0/
CD sh-1.3.0/
./uninstall.sh
Download a good installation package, first uploaded to the host/home directory. You can enter in the Xshell interface: Cd/home then click Invoke Xftp, as shown below:
Click on the call Xftp, will open the Xftp tool, and then we can download the installation package uploaded to the host's home directory, can be directly dragged over, the following figure:
When the upload is complete, we return to the shell interface, input: chmod–r 777 sh
Confirm and then enter: CD sh && chmod +x install*.sh &&/install.sh
At this point, a selection prompt appears, entering the Web server version of the selection interface, as shown in the following figure:
In the case of high concurrent connections, Nginx is a good substitute for Apache servers. Nginx can also be used as a 7-tier load-balancing server. According to my test results, Nginx 0.8.46 + PHP 5.2.14 (FastCGI) can withstand more than 30,000 concurrent connections, equivalent to Apache 10 times times the same environment. Here we select Nginx, enter 1, return (if nothing input, direct return, or enter the wrong character, then the default selection Nginx)
Then we select the version of the Nginx to install (if the Web server chooses Apache, the message is to install the Apache version), a total of 1.0.15/1.2.5/1.4.4 three versions can provide our choice, Here we select 1.2.5 version, then enter 2, carriage return (if nothing entered, direct return, or enter the wrong characters, then the default selection 1.0.15 version)
Then we select the version of PHP to be installed, and a total of three 5.3.18/5.4.23/5.5.7 versions are available for us to choose from. Here we select 5.5.7 version, then enter 3, carriage return (if nothing entered, direct return, or enter the wrong characters, then the default selection 5.3.18 version)
Then we choose the version of MySQL to install, a total of 5.1.73/5.5.35/5.6.15 three versions can provide our choice, Here we select 5.1.73 version, then enter 1, carriage return (if nothing entered, direct return, or enter the wrong characters, then the default selection 5.1.73 version)
Then you can see the version we just selected is as follows, we enter Y or y to install.
Here, we will formally enter the environmental installation process, the program is automatically compiled installation services. Generally this process lasts for 20 minutes. Until the following figure appears, the installation is complete.
Enter command: NETSTAT-TUNPL
We can see the running state of the service and port: 9000 port is the PHP process service, 3306 port is the MySQL service, 80 port is the Nginx service, 21 port is the FTP service.
Enter on the command line: Cat Account.log can view ftp and MySQL accounts and passwords:
In addition, we can view the version information of the software just installed in Cat/alidata/website-info.log.
All right. All configurations have been completed. At this time, we entered the browser address bar to buy the Aliyun IP address, you can open, out of the interface is Phpwind Forum program installation, this is the installation package from the, as well as database management tools phpMyAdmin
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.