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

日照外贸网站建设网页关键词优化软件

日照外贸网站建设,网页关键词优化软件,网络营销推广建议,wordpress 去掉图片链接先kill掉8082的端口进程 netstat -natp | grep 8082 kill 10256 1、下载nginx nginx安装 EPEL 仓库中有 Nginx 的安装包。如果你还没有安装过 EPEL,可以通过运行下面的命令来完成安装 sudo yum install epel-release 输入以下命令来安装 Nginx sudo yum inst…

先kill掉8082的端口进程

netstat -natp | grep 8082
kill 10256

1、下载nginx

nginx安装

  1. EPEL 仓库中有 Nginx 的安装包。如果你还没有安装过 EPEL,可以通过运行下面的命令来完成安装
sudo yum install epel-release
  1. 输入以下命令来安装 Nginx
sudo yum install nginx
  1. 等到安装完成以后,可以通过以下命令来设置开机启动和运行 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,密码是后面的token:xxxxxxxxx

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.15wanjia.com/news/16971.html

相关文章:

  • iis网站改端口怎样推广
  • java做的网站怎么突破有没有专门做营销的公司
  • 保山市城乡建设局网站全网万能搜索引擎
  • linux下装wordpress潍坊seo按天收费
  • 找做网站公司需要注意什么条件西安计算机培训机构排名前十
  • 东莞企业做网站全网整合营销外包
  • 深圳英文网站开发公司郑州营销型网站建设
  • 网站的建设时间抖音搜索seo排名优化
  • 网站收录怎么提高百度推广竞价
  • 昌平b2c网站制作价格如何成为百度广告代理商
  • 企业形象广告设计网站seo检测工具
  • 网站开发工程师岗位职责百度热门排行榜
  • 旅游网站的导航怎么做成都私人网站建设
  • 网站建设开发服务费怎么做分录网站优化推广排名
  • 住房新建网站全网营销公司
  • 网站被降权恢复中国职业培训在线官网
  • wordpress 底部导航菜单北京外贸网站优化
  • php开源公司网站网络推广方法有哪几种
  • 美女与男生在床上做羞羞的事网站西安网络推广公司网络推广
  • 系统网站哪个好百度搜索入口
  • 建设一个微网站要花多少钱深圳网站建设公司排名
  • 做一网站需要哪些语言竞价推广返点开户
  • 网站备案格式网络营销推广方案
  • 天津网站建设怎么样2022国内外重大新闻事件10条
  • 用来查数据的网站怎么建设全媒体广告投放平台
  • 高校网络网站建设意义及措施seo搜索引擎优化价格
  • 网站制作国际连锁淘宝代运营
  • 如何优化基础建站苏州新闻今天最新消息新闻事件
  • 网站是做响应式还是自适应的好岳阳seo快速排名
  • 建设宣传网站的必要性国外免费舆情网站有哪些软件