标签:yum-lnmp
安装
wget http://www.atomicorp.com/installers/atomic
sh ./atomic
yum check-update
yum repolist
yum -y install nginx
service nginx start
chkconfig nginx on
yum install -y mysql mysql-server
/etc/init.d/mysqld start
chkconfig mysqld on
cp /usr/share/mysql/my-medium.cnf /etc/my.cnf
mysql_secure_installation #初始化MySQL 回车,根据提示输入Y
Enter current password for root (enter for none): //输入现在的root密码,因为我们还没设置,直接回车
Set root password? [Y/n] Y //是否设定root密码,当然设置了,输入Y回车
New password: //输入root密码,并回车,输入的过程中不会有任何显示
Re-enter new password: //再次输入root密码,并回车,输入的过程中不会有任何显示
Remove anonymous users? [Y/n] Y //是否删除匿名用户,删除,输入Y回车
Disallow root login remotely? [Y/n] Y //是否删禁止root用户远程登录,当然禁止,输入Y回车
Remove test database and access to it? [Y/n] //是否删除测试数据库test,看个人喜好
Reload privilege tables now? [Y/n] Y //刷新权限,输入Y回车
mysql_secure_installation
yum -y install php
yum -y install php-mysql php-gd libjpeg* php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-bcmath php-mhash libmcrypt libmcrypt-devel php-fpm
/etc/rc.d/init.d/php-fpm start
chkconfig php-fpm on
配置
未完,还差配置
标签:yum-lnmp
原文地址:http://105496232.blog.51cto.com/3895811/1826681