网站搭建

1、选购阿里云

2、windows通过PuTTY连接

 

 

mac通过终端ssh连接

 

Nginx 安装配置

地址http://www.runoob.com/linux/nginx-install-setup.html

 

安装过程中出的错误

 原因:pcre目录不对

这里编译的目录指向不对

找了一下

所以要改成这样

 ./configure --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/root/pcre-8.35 
成功查看版本

 配置文件正确提示

先关闭80端口

再启动nginx

 

 扫描端口,发现外网扫不到80

Ker 2017/5/15 14:34:03

看下服务器 开了80端口的监听,那么问题就在防火墙了
14:34:25
Ker 2017/5/15 14:34:25

看了下linux的防火墙,没有任何规则,那么就只能找阿里云后台的规则了

 

 

 

posted @ 2017-05-15 14:42  Steve_Jin  阅读(123)  评论(0编辑  收藏  举报