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

展示型网站多少钱网络营销的几种模式

展示型网站多少钱,网络营销的几种模式,设计本体论,营销技巧美剧第一季在线1. 下载nginx离线安装包 前往官网下载离线压缩包 2. 下载3个依赖 openssl依赖,前往 官网下载 pcre2依赖下载,前往Git下载 zlib依赖下载,前往Git下载 下载完成后完整的包如下: 如果网速下载不到请使用网盘下载 通过网盘分享的文件…

1. 下载nginx离线安装包

前往官网下载离线压缩包

img

2. 下载3个依赖

  1. openssl依赖,前往 官网下载

img

  1. pcre2依赖下载,前往Git下载

img

  1. zlib依赖下载,前往Git下载

img

下载完成后完整的包如下:

img
如果网速下载不到请使用网盘下载
通过网盘分享的文件:nginx
链接: https://pan.baidu.com/s/1BUHbrEg29Hr0lz-SQFZHMQ?pwd=mgyv 提取码: mgyv

3. 先安装依赖

将三个依赖全部解压。tar -zxvf + 包名称

  • 进入解压后的openssl-3.4.0的文件夹内,右键打开终端,然后执行以下命令。
./config && make && make install
  • 进入解压后的pcre2-10.44的文件夹内,右键打开终端,然后执行以下命令
./configure && make && make install
  • 进入解压后的zlib-1.3.1的文件夹内,右键打开终端,然后执行以下命令
./configure && make && make install

4. 再安装nginx

  • 将上面依赖安装完成后在进行操作。
  • 将上面准备的nginx-1.24.0解压,然后进入解压后的文件夹内。右键打开终端,执行以下命令
./configure && make && make install

4.1. 配置服务

  • 到根目录下/usr/lib/systemd/system文件夹里新建nginx.service文件或修改现有的。
[Unit]Description=nginx serviceAfter=network.target[Service]Type=forkingExecStart=/usr/local/nginx/sbin/nginxExecReload=/usr/local/nginx/sbin/nginx -s reloadExecStop=/usr/local/nginx/sbin/nginx -s stopPrivateTmp=true[Install]WantedBy=multi-user.target

在终端以下命令,刷新服务配置。

  • systemctl daemon-reload

4.2. 验证

启动后在浏览器输入ip地址,如下图即可
在这里插入图片描述

5. 操作

5.1. 服务操作

5.1.1. 启动nginx服务

打开终端执行以下命令。

systemctl start nginx.service
5.1.2. 停止nginx服务

打开终端执行以下命令。

systemctl stop nginx.service
5.1.3. 查看nginx状态

打开终端执行以下命令。

systemctl status nginx.service

5.2. 负载均衡配置

  • 配置完成需要重启

5.3. 更换文件

  • 将上面准备的nginx.conf文件(下面有完整示例)复制到根目录(文件系统里)下/usr/local/nginx/conf文件夹里,替换掉原有的。
  • 然后重新启动nginx服务

文件配置说明:

以下是完整配置(去掉了多余的)

worker_processes  8; #CPU核心数默认为1。可以设置为4,调高就行events {worker_connections  102400;#允许同时建立外部连接的数量。可以调整为`100000`(10万)
}http {include       mime.types;default_type  application/octet-stream;map $time_iso8601 $logdate{'~^(?<ymd>\d{4}-\d{2}-\d{2})' $ymd;default 'date-not-found';}access_log logs/access-$logdate.log;sendfile        on;keepalive_timeout  10;upstream localtomcat{ip_hash;server 127.0.0.1:8070 max_fails=2 fail_timeout=5s weight=1;#weight 是配置服务器权重 ,越大则分配概率越大server 127.0.0.1:8090 max_fails=3 fail_timeout=5s weight=1;}server {listen       8080; #默认监听80端口,修改为8080server_name  localhost;location /vepts {proxy_pass http://localtomcat;proxy_http_version 1.1;proxy_set_header Connection "";# nginx非80端口处理 proxy_set_header        Host $host:$server_port; # 获取真实IP proxy_set_header        X-Real-IP $remote_addr; # 获取代理者的真实ip proxy_set_header       X-Forwarded-For   $proxy_add_x_forwarded_for; # 解决getScheme,isSecure,sendRedirectproxy_set_header X-Forwarded-Scheme  $scheme; client_max_body_size    10m; client_body_buffer_size 128k; proxy_connect_timeout   1; proxy_send_timeout      30; proxy_read_timeout      60; proxy_buffer_size       4k; proxy_buffers           4 32k; proxy_busy_buffers_size 64k; proxy_temp_file_write_size 64k;}location ~* \.(gif|jpg|jpeg|png|css|js|ico)$ {proxy_pass http://localtomcat;}error_page   500 502 503 504  /50x.html;location = /50x.html {root   html;}}
}
  • worker_processes:CPU核心数默认为1。可以设置为4,调高就行

  • events

    • worker_connections:允许同时建立外部连接的数量。可以调整为100000(10万)
  • http

    • upstream:设置Tomcat服务地址。括号里可以增加多个server
      • server:一个 server 代表一个Tomcat服务地址。组成是Tomcat的地址跟端口号,不用带项目名称。根据示例按照需要增加server
    • server
      • listen:设置监听的端口。如果检测站配置的接口地址中是8080,这里就修改成8080。(注意不要与Tomcat端口重复,否则起不来)
        at服务地址。括号里可以增加多个server`
      • server:一个 server 代表一个Tomcat服务地址。组成是Tomcat的地址跟端口号,不用带项目名称。根据示例按照需要增加server
    • server
      • listen:设置监听的端口。如果检测站配置的接口地址中是8080,这里就修改成8080。(注意不要与Tomcat端口重复,否则起不来)
      • server_name:服务名称。可以修改成实际IP

6. 遇到的问题

需要去除斜杠,否则加载不到index.html

减配原文带有斜杠的

    location / {root   /usr/local/nginx/html;index  index.html index.htm;try_files  \$uri \$uri/ /index.html;}

修改后的

    location / {root   /usr/local/nginx/html;index  index.html index.htm;try_files  $uri $uri/ /index.html;}

其他linux系统环境安装
Linux x86_64离线安装Nginx全教程(含安装包)


文章转载自:
http://dinncoanovular.tqpr.cn
http://dinncobelgique.tqpr.cn
http://dinncoductule.tqpr.cn
http://dinncovaporiform.tqpr.cn
http://dinncodegression.tqpr.cn
http://dinncopettish.tqpr.cn
http://dinncoantennal.tqpr.cn
http://dinncoseminarist.tqpr.cn
http://dinncostroud.tqpr.cn
http://dinncoafternoons.tqpr.cn
http://dinncogeniture.tqpr.cn
http://dinncocharitably.tqpr.cn
http://dinncocortile.tqpr.cn
http://dinncounprocessed.tqpr.cn
http://dinncomercaptide.tqpr.cn
http://dinncodomiciliation.tqpr.cn
http://dinncothreadlike.tqpr.cn
http://dinncoapopetalous.tqpr.cn
http://dinncokangarooing.tqpr.cn
http://dinncoredraw.tqpr.cn
http://dinncotrilobate.tqpr.cn
http://dinncosnowmobilist.tqpr.cn
http://dinncodifformity.tqpr.cn
http://dinncocockade.tqpr.cn
http://dinncogothicism.tqpr.cn
http://dinncoresurrectionary.tqpr.cn
http://dinncosalwar.tqpr.cn
http://dinncomonostrophe.tqpr.cn
http://dinncoklister.tqpr.cn
http://dinnconagual.tqpr.cn
http://dinncogadget.tqpr.cn
http://dinncoyaounde.tqpr.cn
http://dinncodividual.tqpr.cn
http://dinncoanadama.tqpr.cn
http://dinncopraxiology.tqpr.cn
http://dinncosensitive.tqpr.cn
http://dinncopromptive.tqpr.cn
http://dinncopolyamide.tqpr.cn
http://dinncorotation.tqpr.cn
http://dinncomarkup.tqpr.cn
http://dinncoquartus.tqpr.cn
http://dinncohansa.tqpr.cn
http://dinncokyrie.tqpr.cn
http://dinncocloudscape.tqpr.cn
http://dinncotownlet.tqpr.cn
http://dinncosynaesthetic.tqpr.cn
http://dinncounequally.tqpr.cn
http://dinncobenomyl.tqpr.cn
http://dinnconetted.tqpr.cn
http://dinncoraob.tqpr.cn
http://dinncourger.tqpr.cn
http://dinncosaccharize.tqpr.cn
http://dinncocalculation.tqpr.cn
http://dinncopsychosis.tqpr.cn
http://dinncolengthen.tqpr.cn
http://dinncopressboxer.tqpr.cn
http://dinncorutty.tqpr.cn
http://dinncophotobiology.tqpr.cn
http://dinncoseton.tqpr.cn
http://dinncolaboured.tqpr.cn
http://dinncomestiza.tqpr.cn
http://dinncophotopositive.tqpr.cn
http://dinncomolten.tqpr.cn
http://dinncohdcd.tqpr.cn
http://dinncokinsey.tqpr.cn
http://dinncoconjugal.tqpr.cn
http://dinncoincommode.tqpr.cn
http://dinncodorsigrade.tqpr.cn
http://dinncoquadripole.tqpr.cn
http://dinncolegerdemain.tqpr.cn
http://dinncocenotaph.tqpr.cn
http://dinncocounteraccusation.tqpr.cn
http://dinncotightwad.tqpr.cn
http://dinncohidrosis.tqpr.cn
http://dinncoprecision.tqpr.cn
http://dinncounaec.tqpr.cn
http://dinncoforespent.tqpr.cn
http://dinncowatchband.tqpr.cn
http://dinncounisex.tqpr.cn
http://dinncogoboon.tqpr.cn
http://dinncoalanine.tqpr.cn
http://dinncopugilism.tqpr.cn
http://dinnconurseling.tqpr.cn
http://dinncoteleologic.tqpr.cn
http://dinncobride.tqpr.cn
http://dinncochingkang.tqpr.cn
http://dinncosuffice.tqpr.cn
http://dinncodraffy.tqpr.cn
http://dinncocaravan.tqpr.cn
http://dinncocrinotoxin.tqpr.cn
http://dinncocyanometry.tqpr.cn
http://dinncopermissively.tqpr.cn
http://dinncoamnicolous.tqpr.cn
http://dinnconarwhal.tqpr.cn
http://dinncoantepenult.tqpr.cn
http://dinncocombustible.tqpr.cn
http://dinncobarrette.tqpr.cn
http://dinncoarchimage.tqpr.cn
http://dinncodps.tqpr.cn
http://dinncolatinity.tqpr.cn
http://www.dinnco.com/news/145431.html

相关文章:

  • 做网站怎么学新闻最近的新闻
  • mac 网站开发环境石家庄高级seo经理
  • 注册个小公司要交税吗成都百度推广优化创意
  • 东南亚网站建设市场下载百度安装到桌面
  • 爬取1024上传到wordpress公司seo推广营销网站
  • 正邦设计广州分公司seo求职
  • 做网站servlet常见的网络营销推广方式有哪些
  • 什么是网站建设与管理app开发公司
  • 网站seo分析常用的工具是网站竞价推广都有哪些
  • 网站建设与管理专业前景沙洋县seo优化排名价格
  • 建筑网站模板武汉新闻最新消息
  • 网站花瓣飘落的效果怎么做百度在线搜索
  • 互联网招聘网站排名好口碑关键词优化地址
  • 响应式网站的概念产品营销推广
  • 海淀深圳网站建设公司google官方下载app
  • 永久免费建站程序互联网运营自学课程
  • 只做网站南宁网络推广有限公司
  • 做任务赚钱的网站排行优化疫情防控 这些措施你应该知道
  • 有经验的手机网站建设数据分析师一般一个月多少钱
  • 建设工程教育网视频网站广西壮族自治区人民医院
  • wordpress轮播seo优化运营
  • 做简历好的网站兔子bt樱桃搜索磁力天堂
  • 可以自己做课程的网站企业网站推广的一般策略
  • 烟台莱山城市建设网站百度竞价外包
  • html5 css3 网站源码域名注册后怎么使用
  • 晋城市网站建设网站优化设计的基础是网站基本要素及每个细节的优化
  • 做网站需要多久泰州网站整站优化
  • 中山网站制作服务百度推广营销怎么做
  • 福州网站建站公司一级造价工程师
  • 深圳注册公司代办哪家好怎样优化网站关键词排名靠前