当前位置: 首页 > news >正文

新兴街做网站公司产品策划方案怎么做

新兴街做网站公司,产品策划方案怎么做,网址大全360,柬埔寨旅游网站建设一、 Nginx 相关使用。 相关命令 启动 nginx start nginx立即停止 nginx nginx -s stop平缓停止 nginx#xff08;已有请求不会意外停止#xff09; nginx -s quit重新加载配置文件 nginx -s reload二、Nginx conf 配置文件详解 参考文章皮卡丘的猫 server 配置项 server 可…一、 Nginx 相关使用。 相关命令 启动 nginx start nginx立即停止 nginx nginx -s stop平缓停止 nginx已有请求不会意外停止 nginx -s quit 重新加载配置文件 nginx -s reload 二、Nginx conf 配置文件详解 参考文章皮卡丘的猫 server 配置项 server 可以在 http 指令块中设置多个虚拟机 listen 监听端口server_name localhost , ip , 域名location 请求路由映射,匹配拦截root 请求位置index 首页设置 server {listen 88; // 端口号server_name localhost; // 域名location / {root html;index index.html index.htm;}}三、Nginx 使用中相关报错 The system cannot find the file specified 错误信息 nginx: [error] OpenEvent(“Global\ngx_reload_5988”) failed (2: The system cannot find the file specified) 可能出现原因 可能是之前已经启动的 nginx 进行还在。用双击 nginx.exe 的方式启动导致最好实在 cmd 窗口中使用命令的方式启动。 解决办法: 可重新解压 nginx 压缩包处理此问题. 重新解压后在 nginx 根目录下执行命令 nginx -s reload 即可。 参考文章搬砖的小伙儿 也可以执行下面 nginx 命令 参考文章katy 的小乖 nginx -c ./conf/nginx.confnginx 不是内部或外部命令 错误信息: 当命令行窗口 报 nginx 不是内部或外部命令 错误时说明 nginx 没有安装成功。 可能原因: nginx 没有安装成功。执行命令的路径不对。(命令行唤出的路径不对.) 解决办法: 再 nginx 的根目录下 ,唤出命令行窗口执行命令 nginx 即可。 (根目录: 跟 nginx.exe, conf,html 等文件夹同级的文件目录) forbidden by its access permissions 错误信息: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions) 可能原因: 端口被占用 参考文章搬砖的小伙儿 解决办法: 在 conf 文件下的 nignx.conf 文件中找到 listen 80; 换个端口即可 查看本地端口占用情况: 输入命令 netstat -ano就可以看到本机所有端口的使用情况一般 80 端口在第一行 tasklist 列出所有当前运行的进程 unknown directive dist 错误信息: nginx: Lemerg. unknown directive dist”in D;nginx-1.20.2/conf/nginx.conf:47 nginx.conf: 47 ,47 表示出错的行数 可能原因: 可能是标点符号的中英文问题.也可能是 访问的本地文件路径问题. 解决办法: 重新检查 nginx.conf 文件中 location配置项的路径是否正确.检查报错代码行 标点符号的中英文 修改后的 location 配置项: location / {root html;index dist index.html;} 原 nginx.conf 文件 相关配置项. #user nobody; worker_processes 1;#error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info;#pid logs/nginx.pid;events {worker_connections 1024; }http {include mime.types;default_type application/octet-stream;#log_format main $remote_addr - $remote_user [$time_local] $request # $status $body_bytes_sent $http_referer # $http_user_agent $http_x_forwarded_for;#access_log logs/access.log main;sendfile on;#tcp_nopush on;#keepalive_timeout 0;keepalive_timeout 65;#gzip on;server {listen 80;server_name localhost;#charset koi8-r;#access_log logs/host.access.log main;location / {root html;index index.html index.htm;}#error_page 404 /404.html;# redirect server error pages to the static page /50x.html#error_page 500 502 503 504 /50x.html;location /50x.html {root html;}# proxy the PHP scripts to Apache listening on 127.0.0.1:80##location ~ \.php$ {# proxy_pass http://127.0.0.1;#}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ \.php$ {# root html;# fastcgi_pass 127.0.0.1:9000;# fastcgi_index index.php;# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;# include fastcgi_params;#}# deny access to .htaccess files, if Apaches document root# concurs with nginxs one##location ~ /\.ht {# deny all;#}}# another virtual host using mix of IP-, name-, and port-based configuration##server {# listen 8000;# listen somename:8080;# server_name somename alias another.alias;# location / {# root html;# index index.html index.htm;# }#}# HTTPS server##server {# listen 443 ssl;# server_name localhost;# ssl_certificate cert.pem;# ssl_certificate_key cert.key;# ssl_session_cache shared:SSL:1m;# ssl_session_timeout 5m;# ssl_ciphers HIGH:!aNULL:!MD5;# ssl_prefer_server_ciphers on;# location / {# root html;# index index.html index.htm;# }#}}
http://www.hkea.cn/news/14530690/

相关文章:

  • 沈阳中天建设集团网站基于MVC网站建设课程设计报告
  • 北京网站制作定制公司页面设计代码
  • 公司网站建设方案详细方案模板济南做网站得多少钱
  • 织梦 xml 网站地图莱芜信息港金点子招聘
  • 做网站的语言有哪些电子方案网站建设方案
  • 济南网站建设平台官网江西网站建设哪家好
  • 免费行情软件网站下载大全军事网站 模板
  • 个人网站怎么做引流电脑培训学校
  • 网站开发用到的编程天津百度快速排名优化
  • 购物网站 设计公司网站怎么申请
  • 开放大学门户网站建设方案天津免费建网站
  • 宁波网站设计网站建设违约交付
  • 做网站就业要会什么问题哪个网站有上门做指甲
  • 高端开发网站系统创业平台官网
  • 网站建设需要什么硬件和软件有哪些方面网站建设及目标
  • 网站建设 容易吗重庆公司注销流程
  • php 网站响应时间整合营销传播理论
  • 个人网站模板响应式html5网页设计源代码
  • php实现网站消息推送南宁建站平台
  • 深圳网站制作公司兴田德润怎么样个别网站网速慢怎么做
  • 江西省城乡建设培训网 官方网站北京做招聘网站的公司
  • 广州网站建设学习安卓手机建网站
  • 制作html5网站手机网站seo怎么做
  • 长子营网站建设公共资源交易中心总结
  • 没有网站流量怎么办定制家居软件app哪个好
  • 门户网站做的比较好的公司微信商城网站案例展示
  • 怎么做房产网站网站模版怎么做
  • 广东圆心网站开发windows搭建php网站
  • 天津高端网站制作php商城网站开发
  • 做互联网小程序 和网站有没有前景阿里巴巴申请网站怎么做