Nginx is a free, open-source, and high-performance HTTP server. Nginx is famous for its stable performance, rich functions, simple configuration, and low resource consumption. This tutorial helps you install nginx servers that support PHP and MySQL In Ubuntu. 1. precautions before installation first, the Ubuntu software must be installed with the root permission. Therefore, you must add Sudo before the command and enter the password. Otherwise, insufficient permissions are displayed. Run apt-getupdate to update the local software before installation. To avoid security issues
Nginx is a free, open-source, and high-performance HTTP server. Nginx is famous for its stable performance, rich functions, simple configuration, and low resource consumption. This tutorial helps you install nginx servers that support PHP and MySQL In Ubuntu.
1Precautions before installation
First, you must use the root permission to install Ubuntu software. Therefore, you must add Sudo before the command and enter the password. Otherwise, insufficient permissions are displayed.
Run apt-get update to update the local software before installation. To avoid errors during installation.
2Install MySQL5.0
Running statement
Apt-get install mysql-server mysql-client
The root User Password of MySQL is required during installation.
New password for the MySQL "root" user: <-- yourrootsqlpassword
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword
3Install nginx
Run
Apt-get install nginx
Start nginx
/Etc/init. d/nginx start
Access the IP address of your server (http://www.6688.cc/) will see the nginx welcome Interface
Add nginx to start up
Update-rc.d nginx ults