Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install the web environment for linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to install the web environment for linux". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Prepare the tools to connect to the linux server, and xshell and xftp are recommended.

Xshell is a powerful security terminal emulation software that supports SSH1, SSH2, and TELNET protocols on the Microsoft Windows platform.

Download address: https://www.yisu.com/softs/56322.html

Xftp is a powerful SFTP and FTP file transfer software based on MS windows platform.

Download address: https://www.yisu.com/softs/81853.html

Open xshell after installation

Set CVM login information

Set the server account password

Set character set encoding

Once set up, click ok to save.

Everything is ready, let's connect to see the true face of the cloud linux server.

It is not dark in the depths of winter, there is nothing, this is linux's shell. What on earth is shell (shell)?

* Shell is the user interface of the system, which provides an interface for users to interact with the kernel. It receives the command entered by the user and sends it to the kernel for execution.

As a server-specific operating system, linux mainly stays silently in the computer room to provide various network services. In order to save system resources, gorgeous user desktops like windows are not loaded by default. Of course, more and more users are using linux as their daily home office operating system, so they have super-gorgeous desktops like gnome and kde. However, as a server, it is recommended to use the command line interface, after all, save some resources, the website may be faster to open it!

Type the following command to check the home directory (/ home)

Cd / home

Now type in the following line of command with the keyboard

Cd / home & & mkdir tmp & & cd tmp

Upload environment installation files with xftp

Go back to the shell interface and use the ll command to see what's going on

Ll

Is there an extra sh directory?

Next, follow the instructions and type in the installation command step by step

Chmod-R 777 sh

Cd sh

. / install.sh

A selection prompt appears to enter the selection interface for the web server version

Here you can choose apache or nginx servers according to your needs. Here is an introduction to the two servers.

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

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

Citation

In the case of high concurrent connections, Nginx is a good alternative to 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, which is 10 times that of Apache in the same environment.

Here we choose nginx, enter n, and enter enter.

At this point, we have officially entered the process of environmental installation. You can make a cup of tea and have a rest. Usually this process lasts for half an hour.

To prevent disconnection from the server, open a new shell window, move the mouse over the window tab, and right-click, as shown in the following figure:

As you can see, a new window has been opened

Enter the top command

You can see the statistics of system resources that have been beating.

Okay. After doing this, let's wait quietly. The program is automatically compiling and installing the service!

Go to this interface to indicate that the installation is over.

Everyone has questions. So how do I log in to ftp and mysql?

On the command line, enter:

Cat account.log

Did you see that?

The user name of ftp is: www

The user name of mysql is: root

The password is on the screen!

Okay. All configurations have been completed. Isn't it easy!

Website directory: / alidata/www

Server software directory: / alidata/server

Mysql directory / alidata/server/mysql

Php directory / alidata/server/php

If nginx is selected, there will be a nginx directory in the

/ alidata/server/nginx/

The Nginx configuration file is in / alidata/server/nginx/conf

Add Nginx virtual host you can modify / alidata/server/nginx/conf/vhosts/phpwind.conf

If apache is selected, there will be a httpd directory in the

/ alidata/server/httpd

The apache configuration file is in / alidata/server/httpd/conf

Add apache virtual host you can modify / alidata/server/httpd/conf/vhosts/phpwind.conf

That's all for "how linux installs the web environment". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report