越简单越好!

阿里云ECS-CentOS7.0配置nginx+php+mysql笔记

发表于 2015-05-21 15:02 | 234次阅读 0次点赞   CentOs
改变ssh端口 Port 22 -> 222
#vi /etc/ssh/sshd_config

重启sshd服务
#systemctl restart sshd.service

更新yum
#yum -y update

安装nginx
#yum -y install nginx
service nginx start
配置nginx http://blog.chenapp.com/search/index?k=nginx

安装php
yum -y install php php-fpm php-mysql php-mbstring php-gd php-pdo php-pecl-redis php-process php-devel php-pear libevent-devel
service php-fpm start
配置php-fpm 

安装mysql
yum -y install mysql
返回顶部 ^