标签:http ar sp 文件 on art bs html ad
做为一个前端灰常讨厌服务器配置但有时候还是很喜欢折腾下,牛逼人都是源码安装 菜鸟就学习下yum安装吧
yum upgrade
rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi
yum --enablerepo=remi install mysql mysql-server nginx memcached php php-mbstring php-gd php-mysql php-fpm php-memcache openssl
chkconfig nginx on
chkconfig mysqld on
chkconfig memcached on
chkconfig php-fpm on
service nginx restart
service mysqld restart
service memcached restart
service php-fpm restart
nginx默认网站目录
/usr/share.nginx/html
nginx默认配置文件目录
/ect/nginx/
默认的nginx配置是nginx.conf 加载 /ect/nginx/conf.d下所有.conf文件 复制一份default.conf文件 修改就可以
修改保存后
service nginx restart
在次只粗略记载配置方法
标签:http ar sp 文件 on art bs html ad
原文地址:http://www.cnblogs.com/zhang1229/p/4128593.html