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