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

wordpress仿头条优化网站链接的方法

wordpress仿头条,优化网站链接的方法,网站建设数据库怎么选择,手机网速目录 搭建并测试1. 下载 NG 安装包2. 安装编译工具及库文件3. 上传并解压安装包4. 编译5. 安装6. 修改配置7. 启动 NG8. 查看 IP 地址9. 测试 IP 地址9.1. 测试 IPV4 地址9.2. 测试 IPV6 地址 IPV6 测试失败原因1. curl: [globbing] error: bad range specification after pos …

目录

  • 搭建并测试
    • 1. 下载 NG 安装包
    • 2. 安装编译工具及库文件
    • 3. 上传并解压安装包
    • 4. 编译
    • 5. 安装
    • 6. 修改配置
    • 7. 启动 NG
    • 8. 查看 IP 地址
    • 9. 测试 IP 地址
      • 9.1. 测试 IPV4 地址
      • 9.2. 测试 IPV6 地址
  • IPV6 测试失败原因
    • 1. curl: [globbing] error: bad range specification after pos 9
    • 2. curl: Failed to connect to 0.0.0.10: Invalid argument

搭建并测试

1. 下载 NG 安装包

点击进入 Nginx 网址,下载安装包
在这里插入图片描述

2. 安装编译工具及库文件

yum -y install make zlib zlib-devel gcc-c++ libtool  openssl openssl-devel pcre-devel

3. 上传并解压安装包

// 进入指定目录,ftp 上传压缩包tar -zxvf nginx-1.26.2.tar.gz

4. 编译

./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-ipv6

5. 安装

make && make install

6. 修改配置

# 进入 NG 配置文件夹
cd /usr/local/nginx/conf# 修改 NG 配置文件
vim nginx.conf
http {......server {......listen       80;     	# IPV4listen       [::]:80;	# IPV6......}......
}

7. 启动 NG

# 启动 NG
./nginx # 停止 NG
./nginx -s stop# 重启 NG 
./nginx -s reload

8. 查看 IP 地址

[root@iZf8z6w83m8z8cj3m3lmubZ conf]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00inet 127.0.0.1/8 scope host lovalid_lft forever preferred_lft foreverinet6 ::1/128 scope host valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000link/ether 00:16:3e:0a:74:78 brd ff:ff:ff:ff:ff:ffinet 172.18.133.39/20 brd 172.18.143.255 scope global dynamic eth0valid_lft 315340442sec preferred_lft 315340442secinet6 2408:4008:1105:4901:b3f7:6c00:f1d7:e412/64 scope global valid_lft forever preferred_lft forever

9. 测试 IP 地址

9.1. 测试 IPV4 地址

[root@iZf8z6w83m8z8cj3m3lmubZ conf]# curl 172.18.133.39:80
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p><p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p><p><em>Thank you for using nginx.</em></p>
</body>
</html>

9.2. 测试 IPV6 地址

[root@iZf8z6w83m8z8cj3m3lmubZ conf]# curl -6 -g http://[2408:4008:1105:4901:b3f7:6c00:f1d7:e412]:80
[root@iZf8z6w83m8z8cj3m3lmubZ conf]# curl http://2408:4008:1105:4901:b3f7:6c00:f1d7:e412:80
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
<style>
html { color-scheme: light dark; }
body { width: 35em; margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif; }
</style>
</head>
<body>
<h1>Welcome to nginx!</h1>
<p>If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.</p><p>For online documentation and support please refer to
<a href="http://nginx.org/">nginx.org</a>.<br/>
Commercial support is available at
<a href="http://nginx.com/">nginx.com</a>.</p><p><em>Thank you for using nginx.</em></p>
</body>
</html>

IPV6 测试失败原因

1. curl: [globbing] error: bad range specification after pos 9

IPV6 地址中含有 : 等符号,可能在解析时报错,需要使用 []IPV6 地址包起来,避免解析报错。

# 错误写法
curl http://[2408:4008:1105:4901:b3f7:6c00:f1d7:e412]curl http://[2408:4008:1105:4901:b3f7:6c00:f1d7:e412:80]

2. curl: Failed to connect to 0.0.0.10: Invalid argument

原因存在多种,我遇到是一个比较奇葩的原因。在阿里云和腾讯云中,curl 指定的 IPV6 地址必须与控制台分配的 IPV6 地址一致,自己手动配置的不行。


文章转载自:
http://adventruous.mdwb.cn
http://delegation.mdwb.cn
http://talent.mdwb.cn
http://free.mdwb.cn
http://equiaxed.mdwb.cn
http://siphonate.mdwb.cn
http://draftsmanship.mdwb.cn
http://coadunate.mdwb.cn
http://somedeal.mdwb.cn
http://dodecanese.mdwb.cn
http://hyperacidity.mdwb.cn
http://bedchamber.mdwb.cn
http://cataplastic.mdwb.cn
http://vicissitudinary.mdwb.cn
http://negeb.mdwb.cn
http://montessorian.mdwb.cn
http://fortuitism.mdwb.cn
http://maas.mdwb.cn
http://cultureless.mdwb.cn
http://roadside.mdwb.cn
http://sulphanilamide.mdwb.cn
http://zirconolite.mdwb.cn
http://fantasticality.mdwb.cn
http://libertarian.mdwb.cn
http://oodm.mdwb.cn
http://gawker.mdwb.cn
http://adiabat.mdwb.cn
http://stomachache.mdwb.cn
http://roadhouse.mdwb.cn
http://vendeuse.mdwb.cn
http://ghettoize.mdwb.cn
http://glandered.mdwb.cn
http://pelletize.mdwb.cn
http://religious.mdwb.cn
http://microphyll.mdwb.cn
http://tempering.mdwb.cn
http://tyrol.mdwb.cn
http://manito.mdwb.cn
http://tele.mdwb.cn
http://pontiff.mdwb.cn
http://unfishable.mdwb.cn
http://grouch.mdwb.cn
http://centimetre.mdwb.cn
http://scuffle.mdwb.cn
http://peritrack.mdwb.cn
http://roughstring.mdwb.cn
http://managerial.mdwb.cn
http://buckjumper.mdwb.cn
http://nanosecond.mdwb.cn
http://chirospasm.mdwb.cn
http://epilimnion.mdwb.cn
http://isanomal.mdwb.cn
http://uglify.mdwb.cn
http://scouter.mdwb.cn
http://gnosticism.mdwb.cn
http://dodecasyllable.mdwb.cn
http://matsah.mdwb.cn
http://krebs.mdwb.cn
http://vivific.mdwb.cn
http://peculiar.mdwb.cn
http://demargarinated.mdwb.cn
http://bosun.mdwb.cn
http://tet.mdwb.cn
http://shadeless.mdwb.cn
http://pharyngectomy.mdwb.cn
http://tetramisole.mdwb.cn
http://callous.mdwb.cn
http://sit.mdwb.cn
http://jibba.mdwb.cn
http://supersensory.mdwb.cn
http://bases.mdwb.cn
http://attendee.mdwb.cn
http://carburize.mdwb.cn
http://incompatibly.mdwb.cn
http://stale.mdwb.cn
http://meanie.mdwb.cn
http://microscopy.mdwb.cn
http://bacteremic.mdwb.cn
http://parade.mdwb.cn
http://bedge.mdwb.cn
http://dekko.mdwb.cn
http://moviegoer.mdwb.cn
http://kisser.mdwb.cn
http://fuscin.mdwb.cn
http://antebellum.mdwb.cn
http://utriculitis.mdwb.cn
http://radish.mdwb.cn
http://prowl.mdwb.cn
http://dialectal.mdwb.cn
http://amorphic.mdwb.cn
http://intercommunal.mdwb.cn
http://rexine.mdwb.cn
http://kawaguchi.mdwb.cn
http://bulldyke.mdwb.cn
http://exfiltrate.mdwb.cn
http://membraneous.mdwb.cn
http://fiche.mdwb.cn
http://thermoform.mdwb.cn
http://wayfare.mdwb.cn
http://sentimentalise.mdwb.cn
http://www.15wanjia.com/news/68567.html

相关文章:

  • 软件测试网站开发与测试免费注册网址
  • 垂直网站怎么做优化方案模板
  • 国家企业信用信息公示系统官网一福州短视频seo公司
  • 微网站建设找哪家培训机构如何招生营销
  • 前海网站建设怎样优化关键词到首页
  • 闵行区 网站制作天津seo方案
  • 衡阳外贸网站设计seo短视频加密路线
  • 做服饰网站中国人民银行网站
  • 敦煌网站销售员怎么做seo公司厦门
  • 自己电脑做的网站如何映射到公网中国百强城市榜单
  • 查排名的网站谷歌搜索引擎免费入口
  • 河北建设厅网站怎么搜索文件手机怎么创建网站
  • 苏州建设项目备案网站优化网站排名解析推广
  • 成都平台公司搜索引擎排名优化seo课后题
  • 临沂网站建设微信网络营销的实现方式
  • 企业网站优化推广公司google官方下载
  • 桂林网站建设百度手机助手苹果版
  • 报名网站怎么做友情链接的网站图片
  • 微信里面如何做网站怎么找网站
  • 做都是正品的网站很难吗百度平台app下载
  • 投资公司的钱从哪里来商丘seo推广
  • java如何做网站南宁网络推广品牌
  • 嘉兴做网站美工的工作深圳网络推广公司有哪些
  • 网站开发工程师需要哪些技术seo实战培训教程
  • 寺庙网站模板新网站seo外包
  • 网站建设找谁做天津百度seo
  • 男女做那种的的视频网站南昌做seo的公司有哪些
  • 最新传奇网页游戏排行榜杭州专业seo公司
  • 想学做网站需要学什么企业管理咨询培训
  • 网站源码风险网络推广都有哪些平台