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

网站建设 业务培训网站seo如何优化

网站建设 业务培训,网站seo如何优化,网站空间在那里买,2018年怎样做淘宝客网站先kill掉8082的端口进程 netstat -natp | grep 8082 kill 10256 1、下载nginx nginx安装 EPEL 仓库中有 Nginx 的安装包。如果你还没有安装过 EPEL#xff0c;可以通过运行下面的命令来完成安装 sudo yum install epel-release 输入以下命令来安装 Nginx sudo yum inst…先kill掉8082的端口进程 netstat -natp | grep 8082 kill 10256 1、下载nginx nginx安装 EPEL 仓库中有 Nginx 的安装包。如果你还没有安装过 EPEL可以通过运行下面的命令来完成安装 sudo yum install epel-release 输入以下命令来安装 Nginx sudo yum install nginx 等到安装完成以后可以通过以下命令来设置开机启动和运行 Nginx 服务 设置 Nginx 开机启动 sudo systemctl enable nginx 启动 Nginx sudo systemctl start nginx 通过运行以下命令来检查 Nginx 的运行状态 sudo systemctl status nginx 浏览器中打开 http://IP 若出现报错 Jul 13 15:42:05 bastion systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument 执行 # 创建目录并在目录中新增systemd启动配置 mkdir -p /etc/systemd/system/nginx.service.d printf [Service]\nExecStartPost/bin/sleep 0.1\n /etc/systemd/system/nginx.service.d/override.conf # 重启服务 systemctl daemon-reload systemctl restart nginx.service 2、生成密码用于鉴权配置 nginx用户认证配置 Basic HTTP authentication 用户名是test密码是后面的tokenxxxxxxxxx simulation printf jiuzhou:$(openssl passwd -crypt xxxxxxxxxxxxxxxxxxxx)\n /etc/nginx/htpasswd alertmanager printf admin:$(openssl passwd -crypt xxxxxxxxx)\n /etc/nginx/htpasswd 3、修改nginx配置文件 vim /etc/nginx/nginx.conf# For more information on configuration, see: # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian Documentation: http://nginx.org/ru/docs/user root; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid;# Load dynamic modules. See /usr/share/doc/nginx/README.dynamic. include /usr/share/nginx/modules/*.conf;events {worker_connections 1024; }http {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 /var/log/nginx/access.log main;sendfile on;tcp_nopush on;tcp_nodelay on;keepalive_timeout 65;types_hash_max_size 4096;include /etc/nginx/mime.types;default_type application/octet-stream;# Load modular configuration files from the /etc/nginx/conf.d directory.# See http://nginx.org/en/docs/ngx_core_module.html#include# for more information.include /etc/nginx/conf.d/*.conf;server {listen 8082;listen [::]:8082;server_name http://jenkins.xx.xx.com/;root /usr/share/nginx/html;# Load configuration files for the default server block.include /etc/nginx/default.d/*.conf;error_page 404 /404.html;location /404.html {}error_page 500 502 503 504 /50x.html;location /50x.html {} location /output/ {root /var/lib/jenkins/;auth_basic nginx basic http authentication;auth_basic_user_file /etc/nginx/htpasswd;autoindex on; } location / {return 404;}}# Settings for a TLS enabled server. # # server { # listen 443 ssl http2; # listen [::]:443 ssl http2; # server_name _; # root /usr/share/nginx/html; # # ssl_certificate /etc/pki/nginx/server.crt; # ssl_certificate_key /etc/pki/nginx/private/server.key; # ssl_session_cache shared:SSL:1m; # ssl_session_timeout 10m; # ssl_ciphers HIGH:!aNULL:!MD5; # ssl_prefer_server_ciphers on; # # # Load configuration files for the default server block. # include /etc/nginx/default.d/*.conf; # # error_page 404 /404.html; # location /40x.html { # } # # error_page 500 502 503 504 /50x.html; # location /50x.html { # } # }} sudo systemctl reload nginx sudo systemctl restart nginx netstat -natp | grep 8082 sudo systemctl status nginx
http://www.w-s-a.com/news/627810/

相关文章:

  • 自建视频网站WordPress数据库添加管理员
  • 新民电商网站建设价格咨询网站建设高效解决之道
  • 做网站需要哪些步骤网站设计介绍
  • 物流网站制作目的国外中文网站排行榜单
  • 苏州网站建设招标网站ftp的所有权归谁
  • 未央免费做网站河间网站建设
  • 酒庄企业网站app制作多少钱一个
  • 西安模板建网站网站如何做直播轮播
  • 网站功能需求表百度怎么投放自己的广告
  • 如何免费制作网站网站icp备案费用
  • 网站建设最新教程wordpress表白墙
  • android电影网站开发网站建设与设计实习报告
  • 公司汇报网站建设方案烟台seo网站推广
  • 文章网站哪里建设好找素材的网站
  • 怎么做自己的彩票网站公司建设网站价格
  • 国外比较好的设计网站网站后台无法上传图片
  • 帮别人做网站的公司是外包吗用户登录
  • 关于我们网站模板小莉帮忙郑州阳光男科医院
  • 上海门户网站怎么登录永州网站制作
  • 微信网站模版下载做销售的去哪个网站应聘
  • 好看的个人博客主页长安网站优化公司
  • 企业网站关站大型综合新闻门户网站织梦模板
  • 网站优化排名易下拉效率查企业网站
  • 网站建设湛江关于汽车的网站
  • 南宁模板建站多少钱企业黄页名单
  • 企业网站的建设一般要素有网站定制公司地址
  • 婚纱摄影网站设计案例四川省城乡建设厅官方网站
  • 怎么做海淘网站wordpress首页表单
  • 大连网站优化技术长沙高端网站建设服务
  • 郎创网站建设做的网站 v2ex