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

网站中点击链接怎么做的河南网站建设哪家公司好

网站中点击链接怎么做的,河南网站建设哪家公司好,杭州网站设计开发,宝坻做网站CentOS rpm安装Nginx和配置 官方下载地址: http://nginx.org/en/download.html 介绍 Nginx(“engine x”)是一款由俄罗斯的程序设计师Igor Sysoev所开发高性能的 Web和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 代理服务器。 rpm包安装 #安装nginx&#xff0c…

CentOS rpm安装Nginx和配置

官方下载地址: http://nginx.org/en/download.html

介绍

Nginx(“engine x”)是一款由俄罗斯的程序设计师Igor Sysoev所开发高性能的 Web和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 代理服务器。

rpm包安装

#安装nginx,rpm安装
#rpm安装nginx包
rpm -Uvh --force --nodeps nginx-1.16.1-1.el7.ngx.x86_64.rpm#查看启动状态
systemctl status nginx显示如下:
● nginx.service - nginx - high performance web serverLoaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)Active: active (running) since 五 2021-11-26 11:12:41 CST; 5 days agoDocs: http://nginx.org/en/docs/Process: 1379 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)Main PID: 1543 (nginx)Tasks: 5CGroup: /system.slice/nginx.service├─1543 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf├─1544 nginx: worker process├─1546 nginx: worker process├─1547 nginx: worker process└─1548 nginx: worker process1126 11:12:41 liang systemd[1]: Starting nginx - high performance web server...
1126 11:12:41 liang systemd[1]: Started nginx - high performance web server.#启动
systemctl start nginx#重启
systemctl restart nginx#开机自启动服务
systemctl enable nginx#查看开机启动状态 enabled:开启, disabled:关闭
systemctl is-enabled nginx

安装完后在 修改 /etc/nginx/conf.d/default.conf 配置文件,参考内容如下:

vim /etc/nginx/conf.d/default.conf

server {listen       80;server_name  localhost;#charset koi8-r;#access_log  /var/log/nginx/host.access.log  main;location /ui {alias   /data/dist;index  index.html index.htm;}location /file/ {root   /home/data/;index  index.html index.htm;}    # websocket配置wsslocation /liangws/ {proxy_pass http://192.168.0.19:8080/;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection "upgrade";proxy_set_header Remote_addr $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_read_timeout 600s;}location ~ /gat {proxy_set_header Host  $host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_pass http://localhost:18080 ;}#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   /usr/share/nginx/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 Apache's document root# concurs with nginx's one##location ~ /\.ht {#    deny  all;#}
}

注意:静态文件下载,需要依赖nginx,我们需要将这些文件放到 nginx配置文件中的 /home/data/aaa 对应的目录下。

启动服务配置

cat /usr/lib/systemd/system/nginx.service

[Unit]
Description=nginx - high performance web server
Documentation=http://nginx.org/en/docs/
After=network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target[Service]
Type=forking
PIDFile=/var/run/nginx.pid
ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID[Install]
WantedBy=multi-user.target
http://www.dt0577.cn/news/42133.html

相关文章:

  • 网站建设服务ysaigo企业微信营销管理软件
  • 网站建设易网宣网站怎么推广
  • 建站网站苏州网络销售怎么学
  • 特效网站口碑好网络营销电话
  • 直播网站怎么做的促销策略
  • 找做企业网站荥阳网站优化公司
  • 杭州公司注册网上核名如何优化推广网站
  • 做环保是跑还是网站卖镇江关键字优化品牌
  • 360未经证实的网站如何做营销网络推广哪家好
  • 湖南高端网站建设合肥网站推广公司
  • 南通做网站的花云软文营销是什么
  • 建站模板哪里好自媒体平台注册官网
  • 网站公安局备案规定网上永久视频会员是真的吗
  • 如何关闭公安备案网站线上营销策略
  • 专业微信网站建设报价百度小说排名
  • 合肥建设学校官网网站怎样制作属于自己的网站
  • 网站app开发费用资源网
  • 上海松江区做网站公司google关键词挖掘工具
  • 绍兴建设用地使用权网站北京seo公司排名
  • 重庆网站建设招聘seo值怎么提高
  • 公司网站开发费用计入哪个科目附近的计算机培训班
  • 北京顺义建设委员会网站首页公司网站制作要多少钱
  • 物流网站建设案例重庆企业seo
  • 平台网站制作竞价网官网
  • 营销网站建设汉狮电话长春做网站公司长春seo公司
  • 焦作网站建设哪家专业百度关键词竞价查询系统
  • 建站 报价推广自己的网站
  • 360网站做二维码精准防恶意点击软件
  • 互联网装饰网站seo研究中心道一老师
  • 怎么做草坪网站一站式软文发布推广平台