One-click Installation Package Download : Click here to download
Installation Instructions
1. This installation package can be installed on all Linux systems in Aliyun, and this installation package contains the following software and versions:
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. As shown in the following illustration, the MNT directory has been mounted before installation. Once installed, the one-click Installer package mounts the/alidata directory again.
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
OK, here's our detailed installation steps, come on ~~!
First get ready to connect the Linux Server tools, recommended with Xshell and xftp.
Xshell is a powerful security terminal emulation software that supports the Telnet protocol for SSH1, SSH2, and Microsoft Windows platforms.
Download Address: http://www.jb51.net/softs/260508.html
Xftp is a powerful sftp, FTP file transfer software based on MS Windows platform.
Download Address: http://www.jb51.net/softs/81853.html
Depending on the download address provided above, first install Xshell (basically click Next until installation is complete):
Click Next--> at this time to select "Free for Home/school" (complimentary edition).
Click Next-->next-->next-->install to install (you can also choose Xshell after the installation of the language environment, familiar with English friends, you can choose the Chinese option).
Click Finish to complete the Xshell installation.
Then we can see the following interface.
Next, install Xftp (a gadget for uploading files to a Linux server), and installing xftp is also very simple, and basically click Next until the installation is complete.
Click Next --> at this time to select "Free for Home/school" (complimentary version).
Click Next -->next-->next-->install (You can also choose to xshell the installation of the language environment, familiar with English friends, you can choose the Chinese option).
Click Finish to complete the installation.
Then we can see the lower bound.
Then we open Xshell and set up cloud server login information.
Set the server account password.
Sets the character set encoding (if you do not set the character set encoding, the Chinese characters will appear as garbled in Xshell).
Set it up and click OK to save it.
Everything is ready, let's connect to see the cloud Linux server of the truth!
Black is not winter, nothing, this is the shell of Linux. What is the shell (shell) in the end?
* The Shell is the user interface of the system and provides an interface for users to interoperate with the kernel. It receives the command entered by the user and sends it to the kernel for execution.
Linux as a server-specific operating system, the main is silently in the room to provide various network services, in order to save system resources, such as Windows gorgeous user desktop is not loaded by default. Of course, now more and more users use Linux as a day-to-day Home Office operating system, so there are such as GNOME, KDE, such as the gorgeous desktop. However, as a server to use or recommend using the command line interface, after all, save a little resources, the site may be faster to open it!
Take the following command to the home directory (/home) to see
Enter command: CD
Upload the environment installation files with XFTP.
Back to the Shell interface, with ll command to look at the situation
Enter command: LL
is not a more than a sh-1.3.0 directory, 1.3.0 is our one-click installation package version number. Please download the latest version of the installation, update the introduction, we can see in the Change.log. Also hope that you have a lot of feedback for a key installation package advice. (in addition, familiar with Linux friends, can directly use the wget command to download our installation package, also do not install XFTP, so more convenient.) )
Next follow the instructions to step through the installation command (the following is a sample installation under the Redhat system).
Input command: Chmod–r 777 sh-1.3.0
CD sh-1.3.0
./install.sh
A selection prompt appears and enters the Web server's selection interface.
Here you can choose Apache or Nginx server as needed, here is an introduction to 2 servers:
Apache:http://baike.baidu.com/view/28283.htm
Nginx:http://baike.baidu.com/view/926025.htm
Reference:
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 link. You can take a cup of tea and have a rest. Generally this process lasts for half an hour.
Attention:
1, please install in the case of smooth network, do not force the termination of the installation process (forcibly close the installation window or CTRL + C forcibly terminate the installation process), it will cause installation failure, and an unpredictable installation of the exception!
2, before the installation, it is best to play with the system disk snapshot, if abnormal, easy to roll back the system.
To prevent disconnect from the server, you can open a new shell window, move the mouse over the Window tab bar, right-click, as shown in the following image:
As you can see, a new window opens.
Enter Top command
You can see the system resource statistics that are constantly beating.
All right. Have done this some let us quietly waiting for it! The program is compiling the installation service automatically!
To this interface to indicate that the installation is over, we can enter the following command to verify that the installation is not successful:
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.
If you see the above information, the installation is not abnormal. One thing to note here is that if you choose to install Apache, there is no 9000 port above. Why do you choose to install Apache, there is no 9000-port PHP process service? This is because nginx+php integration mode and apache+php integration mode, interested friends can enter into the study, here is no longer introduced.
We have a question. So how do I log in to FTP and MySQL?
Enter at command line: Cat Account.log
See, No.
The user name of FTP is: www
The user name of MySQL is: root
The password is on the screen!
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. is not very simple!
Next we can visit the Phpwind forum and phpMyAdmin, which is the default installation of a key installation package.
Enter your domain name or IP directly in the browser, and if it is the first time you access Phpwind, you will automatically jump to the installation page.
If the card owner does not come out on the page, check the firewall and set or close the firewall yourself.
Click "Accept" to install.
Then select the database type for MySQL, database username and database password to fill in the username and password in Account.log. Then according to their own requirements, set up the database name, Administrator account and password and so on.
After filling in the information, click Next to complete the installation.
Next we visit phpMyAdmin, type our domain name or ip+phpmyadmin path in the browser to access our installed phpMyAdmin.
Enter the MySQL username and password to log in.
In the end, we can manage our MySQL in this area. It's simple and convenient.
----------------------------------------------------------------------
Site Directory:/alidata/www
Server Software directory:/alidata/server
Mysql Directory/alidata/server/mysql
PHP directory/alidata/server/php
Choose Nginx Then there will be a nginx directory in/alidata/server/nginx/
Nginx configuration file in/alidata/server/nginx/conf
Nginx Virtual Host Add you can modify/alidata/server/nginx/conf/vhosts/phpwind.conf
Choose Apache Then there will be a httpd directory in/ALIDATA/SERVER/HTTPD
Apache configuration file in/alidata/server/httpd/conf
Apache Virtual Host Add you can modify/alidata/server/httpd/conf/vhosts/phpwind.conf
Summary of each service operation command:
Nginx:
/etc/init.d/nginx start/stop/restart/reload)
Apache:
/ETC/INIT.D/HTTPD start/stop/restart/...
Mysql:
/etc/init.d/mysqld start/stop/restart/...
PHP-FPM:
/ETC/INIT.D/PHP-FPM start/stop/restart/...
Ftp:
/ETC/INIT.D/VSFTPD start/stop/restart/...
such as starting Nginx:
/etc/init.d/nginx start