随笔分类 - 阿里云linux
摘要:第一步 第二步,选择更换系统盘 第三步 选择镜像,我选择了自己分享的共享镜像。 你可以选择自己的自定义镜像或者其他。 因为我知道自己镜像的密码,所有不需要重设密码,你选择镜像在不知道密码的时候,最好重设密码,免得镜像导入进去了,不知道密码就尴尬了
阅读全文
摘要:使用的是阿里云centOS.74 第一步: 配置urlpath 重启nginx systemctl restart nginx 第二步 Application/Common/Common/Conf/config.php 测试下是否可以,如果还不行 在nginx下的配置文件xxxx.conf里继续增加
阅读全文
摘要:server { listen 80; server_name www.demo.com mayifanx.com; root /data/www/demo; index index.php index.html index.htm; #红色部分支持rewrite location / { if (!-e $reques...
阅读全文
阿里云centOS7.4 nginx: [emerg] "server" directive is not allowed here in /etc/nginx/vhost/xxxxxx.conf:2
摘要:里云centOS7.4配置多个站点遇到的问题nginx: [emerg] "server" directive is not allowed here in /etc/nginx/vhost/xxxxxx.conf:2这个错误好尴尬,费了几个小时去解决,小白呀没办法 先贴下/etc/nginx/ng
阅读全文
摘要:反复装了几遍ngxin,什么防火墙,nginx.conf改了好几次都不能访问外网的ip, 原因是阿里云这货新的服务器根本就没开通443,80端口,真是坑人啊 点击配置规则,增加端口就行了 添加安全规则,选择入方向,端口填好,授权对象填0.0.0.0/0
阅读全文