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

石家庄网站建设是什么意思企业微信app下载安装教育版

石家庄网站建设是什么意思,企业微信app下载安装教育版,个人网页设计欣赏网站,郑州做旅游网站的公司目录 1.安装目录 2.文件详解 2.编译参数 3.Nginx基本配置语法 1./etc/nginx/nginx.conf 2./etc/nginx/conf.d/default.conf 3.启动重启命令 4.设置404跳转页面 1./etc/nginx/conf.d/default.conf修改 ​2. 重启 5.最前面内容模块 6.事件模块 1.安装目录 # etc cd …目录 1.安装目录 2.文件详解 2.编译参数 3.Nginx基本配置语法 1./etc/nginx/nginx.conf 2./etc/nginx/conf.d/default.conf 3.启动重启命令 4.设置404跳转页面 1./etc/nginx/conf.d/default.conf修改 ​2. 重启 5.最前面内容模块 6.事件模块 1.安装目录 # etc cd /etc/nginx/ ls conf.d fastcgi_params mime.types modules nginx.conf scgi_params uwsgi_params ​ # usr cd /usr/lib/nginx/modules ls ​ # html cd /usr/share/nginx/html ls 2.文件详解 路径类型作用/etc/logrotate.d/nginx配置文件Nginx日志轮询用于logrotate服务的日志切割/etc/nginx/conf.d/default.conf、/etc/nginx/nginx.conf配置文件nginx主配置文件/etc/nginx/fastcgi_params、scgi_params、uwsgi_params配置文件cgi和fastcgi的配置文件/etc/nginx/win-utf、koi-utf、koi-win配置文件编码转换映射转换文件/etc/nginx/mime.types配置文件设置http协议的Content-Type与扩展名对应关系/etc/nginx/modules、/usr/lib64/nginx/modules目录nginx模块目录/usr/sbin/nginx、/usr/sbin/nginx-debug命令Nginx 服务的启动管理的终端命令/usr/share/doc/nginx目录帮助文档/var/cache/nginx目录nginx的缓存目录/var/log/nginx/目录nginx的日志目录 2.编译参数 编译选项作用--prefix/etc/nginx --sbin-path/usr/sbin/nginx --modules-path/usr/lib64/nginx/modules --conf-path/etc/nginx/nginx.conf --error-log-path/var/log/nginx/error.log --http-log-path/var/log/nginx/access.log --pid-path/var/run/nginx.pid --lock-path/var/run/nginx.lock安装目的目录或路径--http-client-body-temp-path/var/cache/nginx/client_temp --http-proxy-temp-path/var/cache/nginx/proxy_temp --http-fastcgi-temp-path/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path/var/cache/nginx/uwsgi_temp --http-scgi-temp-path/var/cache/nginx/scgi_temp执行对应模块Nginx所保留的临时性文件--usernginx --groupnginx设定nginx进程启动的用户和用户组with-cc-optparameters设置额外的参数将被添加到CFALAGS变量with-ld-optparameters设置附加的参数连接系统库 3.Nginx基本配置语法 1./etc/nginx/nginx.conf user nginx; # 1.9.10版本后可以配置 # worker_processes auto; # worker_cpu_affinity auto; # 相当于 # worker_processes     4; # worker_cpu_affinity 0001 0010 0100 1000; ​ worker_processes auto; worker_cpu_affinity auto; ​ error_log /var/log/nginx/error.log notice; pid       /var/run/nginx.pid; ​ ​ events {worker_connections 1024; } ​ ​ http {# 设置content-type映射 include       /etc/nginx/mime.types;default_type application/octet-stream; ​ # 通过nginx内置变量拼接的日志字符串 相当于方法名称为 main log_format main $remote_addr - $remote_user [$time_local] $request $status $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for; ​ # 日志存储位置使用的日至格式方法为mainaccess_log /var/log/nginx/access.log main; ​ # 当 nginx 是静态文件服务器时能极大提高nginx的性能表现sendfile       on;#tcp_nopush     on;# 超时时间keepalive_timeout 65; ​#gzip on;# 包含下面 /etc/nginx/conf.d/的.conf结尾的所有文件include /etc/nginx/conf.d/*.conf; } 2./etc/nginx/conf.d/default.conf # 一个http中可以有多个server server {# 这个server 监听的端口listen       80;# 域名、ipserver_name localhost; ​#access_log /var/log/nginx/host.access.log main;# 一个server 可以允许多个locationlocation / {# 这个location 返回的页面路径 html是一个目录root   /usr/share/nginx/html;# index 首页默认访问的页面 index.html index.htm 按照顺序访问index.html 访问不到访问 index.htmindex 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 404 /50x.html;location /50x.html {root   /usr/share/nginx/html;} ​} ​ 3.启动重启命令 # 启动 systemctl start nginx.service # 停止 systemctl stop nginx.service # 重启 systemctl restart nginx.service # 重启 systemctl reload nginx.service ​ [rootlocalhost html]# systemctl start nginx.service [rootlocalhost html]# systemctl stop nginx.service [rootlocalhost html]# systemctl stop nginx.service [rootlocalhost html]# systemctl restart nginx.service ​ 4.设置404跳转页面 # 进入nginx html文件位置 cd /usr/share/nginx/html ​ cp 50x.html 404x.html # 修改内容保存 vi 404x.html 1./etc/nginx/conf.d/default.conf修改 server 下添加下面内容即可 server {error_page   404 /404x.html;location /404x.html {root /usr/share/nginx/html;} } ​ 2. 重启 # 重启访问一个nginx不存在的页面即可 systemctl reload nginx.service 5.最前面内容模块 user设置nginx服务的系统使用用户worker_processes工作进程数和cpu保持一致即可error_log错误日志pidnginx服务启动时候pid 6.事件模块 worker_connections每个进程允许最大连接数1worker_processes个进程处理的最大连接数,一般6535use定义使用的内核模型
http://www.hkea.cn/news/14589315/

相关文章:

  • 坊子网站建设微信小程序报备系统
  • 建网站-湛江市wordpress要发表评论您必须先登录
  • 新手做那些网站比较好微信小程序商城官网
  • 软件科技公司网站模板下载低成本做网站 百知
  • 临清做网站推广绵阳网站建设联系电话
  • 徐州网站开发设计公司电话网站开发设计心得及体会
  • 亚马逊网站网址wordpress 脚本
  • 如何在自己的网站上做友情链接html导入wordpress
  • 快速提升网站关键词排名网站建设前的分析第一小节内容
  • 备案号 网站软文营销的概念
  • 电子商务网站建设与规划案例做网站送推广
  • wordpress代码高亮主题淄博网站制作定制优化
  • wordpress站点使用期限插件网站外链可以在哪些平台上做外链
  • 校园门户网站系统建设关键技术天津建设网站安管人员成绩查询
  • 洛阳网站设计公司如何做国外销售网站
  • 郑州网站建设中国建设建设银行wordpress 内存溢出
  • 音乐类网站模板培训课程网站
  • 厦门市建设局网站首页阿里云 企业网站选哪种
  • 潍坊网站关键词推广展示类网站开发费用
  • 北京建设数字网站wordpress rest 授权
  • 礼叮当 一家做创意礼品定制的网站网站分类导航代码
  • 中小企业网站制作模板企业市场营销
  • 漳州市龙文区建设局网站网站做优化好还是推广好
  • 局域网如何做视频网站建设外贸流程及详细步骤
  • 微商城网站建设市场图书馆网站建设工作
  • 口碑好的扬中网站建设沈阳沈河区网站建设
  • 如何用服务器搭建自己的网站怎么查网站备案域名备案
  • 网站建设岗位职责怎么写百度识图网页版 在线
  • 网站搭建app制作网站参考
  • 珲春建设局网站怎么做福利视频网站