Ubuntu lnmp安装记录
参考了: Ubuntu 14.04 LTS 安装 LNMP Nginx\PHP5 (PHP-FPM)\MySQL
在访问 info.php的时候,我显示的是502错误。后面我参考了: Ubuntu15.04下搭建LNMP环境 进行配置Nginx之后,就可以访问到info.php了。安装好了composer,目前还不清楚现在的nginx的配置文件是否是配置对的。只能从以后的项目开发的构成中发现了。哇卡
--------------------------------------2016-01-24更新--------
Ubuntu中卸载LNMP或者LAMP
我尝试过的所有命令:
1 sudo killall nginx\ 2 sudo /etc/init.d/mysql stop 3 sudo killall mysqld 4 sudo /usr/local/php/sbin/php-fpm stop 5 sudo killall php-cgi 6 sudo rm -rf /usr/local/php 7 sudo rm -rf /usr/local/nginx 8 sudo rm -rf /usr/local/mysql 9 sudo rm -rf /usr/local/zend 10 sudo rm /etc/my.cnf 11 sudo rm /etc/init.d/mysql 12 sudo rm /root/vhost.sh 13 sudo rm /root/lnmp 14 sudo apt-get autoremove apache2 php5-mysql libapache2-mod-php5 php5 mysql-server mysql-client 15 sudo apt-get autoremove nginx 16 sudo apt-get autoremove php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
php5-fpm reload:
$:sudo service php5-fpm reload
reload:Unknown instance:
我尝试的是:
service php5-fpm restart
sudo pkill php5-fpm; sudo service php5-fpm start
参考链接:
1. 如何卸载lnmp
4. Ubuntu php5-fpm throws unknown instance on reload
Ubuntu 16.04 安装LNMP(2016-08-28)
完全是按照: How To Install Linux, Nginx, MySQL, PHP (LEMP stack) in Ubuntu 16.04
个人只是nano编辑器不熟悉,把nano替换为vim了