One-click installation of web environment in linux

Source: Internet
Author: User
Tags ftp file dedicated server ftp file transfer
Xshell is a powerful security terminal simulation software. it supports SSH1, SSH2, and Microsoft Windows. it is recommended to use xshell and xftp.

Xshell is a powerful security terminal simulation software that supports SSH1, SSH2, and Microsoft Windows TELNET protocol.
: Http://www.newhua.com/soft/36383.htm

Xftp is a powerful SFTP, FTP file transfer software based on MS windows platform.
: Http://www.newhua.com/soft/143.htm


Open xshell after installation

 

 

Set ECS login information

 


Set the server account password

 


Set character set encoding

 

 

Click OK to save the settings.

 

 

Everything is ready. Let's connect and see what the cloud linux server looks like!





 

I don't know what to do in the winter. this is the linux shell. What exactly is shell? * Shell is a system user interface that provides an interface for users to interact with the kernel. It receives user-input commands and sends them to the kernel for execution. Linux, as a dedicated server operating system, is mainly waiting for various network services in the data center. to save system resources, Lili user desktops like windows will not be loaded by default. Of course, more and more users now use linux as their daily home office operating systems, so they have ultra-gorgeous desktops like gnome and kde. However, it is recommended to use the command line interface as a server. after all, it saves some resources and the website may be opened faster!

 

Run the following command to go to the main directory (/home) and check

 

  1. Cd/home

 

Now press the following command on the keyboard:

 

  1. Cd/home & mkdir tmp & cd tmp

 

Use xftp to upload environment installation files

 

 

Return to the shell interface and run the ll command to check the situation.

 

  1. Ll

 

Is there an additional sh directory?

 


 

Next, follow the instructions and enter the installation command step by step.
Chmod-R 777 sh cd sh./install. sh
A selection prompt is displayed. the web server version selection page is displayed.

 

You can select an apache or nginx server as needed. here is an introduction to two servers.


Apache: http://baike.baidu.com/view/28283.htm
Nginx: http://baike.baidu.com/view/926025.htm

 

Nginx is a good alternative to Apache servers when high-concurrency connections are referenced. Nginx can also be used as a layer-7 server load balancer. According to my test results, Nginx 0.8.46 + PHP 5.2.14 (FastCGI) can withstand more than 30 thousand concurrent connections, equivalent to 10 times of Apache in the same environment.
Select nginx, enter n, and press enter.

 

 

Now, we have officially started the environment installation process. You can have a cup of tea to rest. Generally, this process lasts for half an hour. To avoid disconnection from the server, you can open a new shell window, move the mouse to the tab bar of the window, and right-click, as shown in:




 

As you can see, a new window is opened.



Enter top Command

 

 

We can see statistics on continuously beating system resources.

 

 

Okay. After doing this, let's wait quietly! The program is automatically compiled and installed!

 

 

 

On this page, the installation is complete.


You have doubts. How can I log on to ftp and mysql?
In the command line, enter:

Cat account. log

 


 

Did you see it?

The ftp user name is www.
The mysql User name is: root

The password is on the screen!

Okay. All configurations have been completed. Is it easy!

 

----------------------------------------------------------------------
Website Directory:/alidata/www
Server Software Directory:/alidata/server

Mysql directory/alidata/server/mysql

If nginx is selected for the Php directory/alidata/server/php, an nginx directory is added to the/alidata/server/nginx/Nginx configuration file in the/alidata/server/nginx/conf Nginx VM. you can modify/alidata/server/nginx/conf/vhosts/phpwind. if apache is selected for conf, an httpd directory is located in the/alidata/server/httpd apache configuration file and added to the/alidata/server/httpd/conf apache virtual host. you can modify/alidata/server/ httpd/conf/vhosts/phpwind. conf
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.