Install Ngnix/php/sql and Uninstall

Source: Internet
Author: User
Tags php and mysql

One

1, install Nginx:

sudo apt-get install nginx    // install sudo/etc/init.d/nginx start    // start 

When finished, enter "localhost" in the browser and if you see "Welcome to Nginx!", the installation is successful.
2. PHP and MySQL Installation
sudo apt-get install php5-cli php5-cgi mysql-server php5-mysql

3. installing CGI

sudo apt-get install spawn-fcgi// start fcgi127.0. 0.1 9000 Ten // For convenience, you can add this to the bottom of the/etc/rc.local (before exit 0) so that each time the system starts, it automatically starts



Second, uninstall 1, the method of uninstalling Nginx is as follows:
sudo rm-rf/etc/nginx/-rf/usr/sbin//usr/share/man/man1/nginx. 1 . Gzsudo apt-get Remove nginx*
2. Uninstalling PHP:
sudo apt-get autoremove Php5-common

3. Uninstall MySQL:

sudo apt-get autoremove  mysql-server mysql-server-5.0

If the installation is using the corresponding aptitude, then uninstall also with the same command, I was installed with Apt-get, so directly with the above deleted

Use

sudo aptitude purge mysql-server mysql-server-5.0

The command was not found when prompted. Just use the following sentence.

sudo apt-get purge mysql-server mysql-server-5.0

You can also refer to the following website to install

Http://blog.chinaunix.net/uid-25492475-id-195536.html

Install Ngnix/php/sql and Uninstall

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.