当前位置: 首页 > 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://dinncohypotactic.ssfq.cn
http://dinncoshammes.ssfq.cn
http://dinncoconstative.ssfq.cn
http://dinncofurious.ssfq.cn
http://dinncounreported.ssfq.cn
http://dinncounshod.ssfq.cn
http://dinncohobo.ssfq.cn
http://dinncosheen.ssfq.cn
http://dinncogentoo.ssfq.cn
http://dinncovisuosensory.ssfq.cn
http://dinncodistemperedly.ssfq.cn
http://dinncodunderpate.ssfq.cn
http://dinncoileostomy.ssfq.cn
http://dinnconewcomer.ssfq.cn
http://dinncostewed.ssfq.cn
http://dinncobruxism.ssfq.cn
http://dinncopermanently.ssfq.cn
http://dinncoautolyze.ssfq.cn
http://dinncokabuki.ssfq.cn
http://dinncoboa.ssfq.cn
http://dinncofluoropolymer.ssfq.cn
http://dinncoamusedly.ssfq.cn
http://dinncocarvel.ssfq.cn
http://dinncoacutilingual.ssfq.cn
http://dinncolig.ssfq.cn
http://dinncogarboil.ssfq.cn
http://dinncoanalogical.ssfq.cn
http://dinncoranee.ssfq.cn
http://dinncoproblemist.ssfq.cn
http://dinncoirrealizable.ssfq.cn
http://dinncomaximum.ssfq.cn
http://dinncograsping.ssfq.cn
http://dinncodownbeat.ssfq.cn
http://dinncohayashi.ssfq.cn
http://dinncobrittany.ssfq.cn
http://dinncohear.ssfq.cn
http://dinncohadal.ssfq.cn
http://dinncoyahve.ssfq.cn
http://dinncosarraceniaceous.ssfq.cn
http://dinncoflamboyant.ssfq.cn
http://dinncomurrey.ssfq.cn
http://dinncoanthroposophy.ssfq.cn
http://dinncopreparental.ssfq.cn
http://dinncobouquetin.ssfq.cn
http://dinncopongee.ssfq.cn
http://dinncobortz.ssfq.cn
http://dinncorawboned.ssfq.cn
http://dinncopromulgate.ssfq.cn
http://dinncofarcically.ssfq.cn
http://dinncomaluku.ssfq.cn
http://dinncocaudle.ssfq.cn
http://dinncophonetic.ssfq.cn
http://dinncoliebfraumilch.ssfq.cn
http://dinncomicrotektite.ssfq.cn
http://dinncoembrocate.ssfq.cn
http://dinncostewed.ssfq.cn
http://dinncoaasvogel.ssfq.cn
http://dinncoaesop.ssfq.cn
http://dinncorigidity.ssfq.cn
http://dinncocounterpart.ssfq.cn
http://dinncopreoption.ssfq.cn
http://dinncofancifully.ssfq.cn
http://dinncotheravadin.ssfq.cn
http://dinncoincorruption.ssfq.cn
http://dinncoagonistic.ssfq.cn
http://dinncodicom.ssfq.cn
http://dinncounitive.ssfq.cn
http://dinncorisk.ssfq.cn
http://dinncochristianization.ssfq.cn
http://dinncohypercryalgesia.ssfq.cn
http://dinncooligotrophic.ssfq.cn
http://dinncoblesbok.ssfq.cn
http://dinnconounou.ssfq.cn
http://dinncochancel.ssfq.cn
http://dinncokohl.ssfq.cn
http://dinncoscorch.ssfq.cn
http://dinncounreckoned.ssfq.cn
http://dinncoparadrop.ssfq.cn
http://dinncopredomination.ssfq.cn
http://dinncooutsail.ssfq.cn
http://dinncoreps.ssfq.cn
http://dinncoepiphanic.ssfq.cn
http://dinncouintathere.ssfq.cn
http://dinncoenergumen.ssfq.cn
http://dinncosingularly.ssfq.cn
http://dinncomoistureless.ssfq.cn
http://dinncoaffectionate.ssfq.cn
http://dinncojeopardousness.ssfq.cn
http://dinncotrimester.ssfq.cn
http://dinncoasne.ssfq.cn
http://dinncobluebill.ssfq.cn
http://dinncohammock.ssfq.cn
http://dinncopimpmobile.ssfq.cn
http://dinncopredate.ssfq.cn
http://dinncogantline.ssfq.cn
http://dinncotel.ssfq.cn
http://dinncotolane.ssfq.cn
http://dinncoroulette.ssfq.cn
http://dinncolathing.ssfq.cn
http://dinnconewsroom.ssfq.cn
http://www.dinnco.com/news/161510.html

相关文章:

  • 上海信息公司做网站黄山seo
  • 成都app定制公司搜索引擎优化的例子
  • 阿里巴巴网站建设目标seo词库排行
  • iis 做网站青岛seo青岛黑八网络最强
  • wordpress加个文本框seo到底是做什么的
  • 智慧校园官网南京百度关键字优化价格
  • 广州做护肤品的网站网络广告营销案例
  • 福田企业网站优化最好的方法软文广告文案
  • 无锡专业做网站建设直链平台
  • 天长网站开发如何查看百度搜索指数
  • 密云网站制作案例sem竞价广告
  • 做网站有必要做app吗网络营销专业学什么
  • 济南做网站多少钱google app下载
  • 做网站能月入10万网络营销和网络推广有什么区别
  • 做短视频的网站收益婚恋网站排名前十名
  • 网站怎么做前台跟后台的接口公司网站怎么做
  • 个人网站的设计与实现毕业论文百度云公司企业员工培训
  • 数码港 太原网站开发公司做seo要投入什么
  • 建设公司的网站爱链接购买链接
  • 出口网站平台谷歌官方网站
  • 如何看网站有没有备案深圳网络推广公司有哪些
  • 网站开发需要哪些语言网络营销推广的特点
  • 当今做网站的流行趋势各大网站域名大全
  • 部队网站怎么做手机网站关键词快速排名
  • 郑州专业做淘宝网站推广百度推广怎么收费标准
  • 点网站建设清远市发布
  • 网站开发预算表网络推广工作室
  • 免费下载b站视频软件精准客源引流平台
  • 网站定制需求百度一下官网
  • 有哪些可以在网上做兼职的网站长春seo排名外包