一、Nginx的下载
1.下载nginx
[root@localhost ~]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
[root@localhost ~]# yum list | grep nginx
[root@localhost ~]# yum install nginx
2.查看配置文件
[root@localhost ~]# ls /etc/nginx
查看网页文件
[root@localhost ~]# ls /usr/share/nginx/html/
3.开启服务
[root@localhost ~]# systemctl start nginx
访问默认主页
二、Tengine的下载
1.源码下载
[root@localhost ~]# wget -c http://tengine.taobao.org/download/tengine-2.3.2.tar.gz
2.下载编译环境
[root@localhost ~]# yum install gcc gcc-c++ make -y
[root@localhost tengine-2.3.2]# yum