分类 运维笔记 下的文章

如果出现无法打开GitHub网页/网站的情况,以采用以下方法解决。不管是使用Linux还是Windows操作系统,都得修改hosts文件(不同的操作系统其文件位置不一样),然后增加GitHub的IP地址和网址。

问题

访问GitHub网站出现的错误

注:其实访问Google、Twitter、Youtube也是超时错误的,通常超时情况一般都是网络原因。

通常的解决方法

第一步:打开ip138或IP/Dns查询工具,查询github.com和raw.githubusercontent.com的IP地址。请记录下检测列表里的TTL值最小的IP。

第二步:在Linux系统下用超级用户的身份打开/etc/hosts文件,将IP地址和网址按格式写入文件内。

第三步:保存文件,重启浏览器或电脑。

附1:hosts文件的路径

如果是Windows系统,多数在C:\Windows\System32\drivers\etc\目录中。

如果是Linux系统,包括Android、Mac、iPhone和大多数UNIX,则都在/etc/目录中,如Deepin 20系统的在/etc/hosts(参考:Deepin V20系统的初始默认/etc/hosts文件内容)。

附2:改hosts文件,在最下方增加以下代码

注意说明:已经亲测可用,能正常访问GitHub网页,但仅做参考,不保证长期有效。

GitHub Start

140.82.114.4 github.com

140.82.113.4 gist.github.com

185.199.108.153 assets-cdn.github.com

199.232.96.133 raw.githubusercontent.com

199.232.96.133 gist.githubusercontent.com

199.232.96.133 cloud.githubusercontent.com

199.232.96.133 camo.githubusercontent.com

199.232.96.133 avatars.githubusercontent.com

199.232.96.133 avatars0.githubusercontent.com

199.232.96.133 avatars1.githubusercontent.com

199.232.96.133 avatars2.githubusercontent.com

199.232.96.133 avatars3.githubusercontent.com

199.232.96.133 avatars4.githubusercontent.com

199.232.96.133 avatars5.githubusercontent.com

199.232.96.133 avatars6.githubusercontent.com

199.232.96.133 avatars7.githubusercontent.com

199.232.96.133 avatars8.githubusercontent.com

GitHub End

结语

通常访问不了GitHub网页跟Windows或Linux操作系统和浏览器无关,而是网络问题,一般GitHub是大的网站,服务器通常是没有问题的,我们只需要修改hosts文件并增加相应的IP和网址即可。

IMM集成管理模块主要功能介绍
System status
查看服务器的健康状况,包括温度、电压和风扇状态等。

Virtual Light Path
查看服务器光通路诊断板上是否有告警。

Event Log
可以查看服务器的日志信息,可以用Save Log as Text File另存日志信息为文本文件。

Vital Product Data
查看服务器的型号序列号及各种微码版本。

Power/Restart
通过IMM控制开关服务器,包括定时开关机功能

Remote Control
远程控制服务器终端,需要添加IBM Virtual Media Key选件来实现此功能,大部分机型标配没有此选件。

PXE Network Boot
设置服务器的PXE启动。

Firmware Update
刷新服务器的UEFI和IMM的微码。

System Settings
设置IMM的时间日期,名字等基本信息。

Login Profiles
为IMM添加除默认之外的其他用户。

Alerts
设置snmp告警等信息。

Serial Port
设置串口信息

Port assignments
定义IMM所使用的端口。

Network Interfaces
设置IMM的网络地址

Network Protocols
配置SNMP,DNS等网络协议

Security
配置SSL、SSH等安全协议

Configuration File
备份和恢复IMM的配置文件

Restore Default Settings
将IMM恢复默认设置

IMM管理端口默认IP:192.168.70.125
用户名:USERID
密码:PASSW0RD
注意字母为大写,密码中的“0”是数字0

连接方法:

使用直连线(此网口可自适应连接方式)将此网口连接于一台终端机(笔记本或台式机).查看此网口的IP地址是否是192.168.70.125,可进入服务器BIOS选项查看,如IP不是192.168.70.125.可将其更改.具体信息如下:

开机按F1进入BIOS选项菜单, 选择“System Settings”进入该菜单设置

进入“System Settings”菜单选项后选择“Integrated Management Module”菜单 
进入“Integrated Management Module”菜单,选择“Network Configuration”菜单 
进入“Network Configuration”查看IP是否是192.168.70.125,如否.将其更改为此IP并选择“Save Network Settings”将设置保存.

2.将终端机的网卡IP设置为与“192.168.70.125”处于同网段的IP,然后在终端机的IE浏览器中输入IP“192.168.70.125”,然后输入账号密码

CentOS 防火墙相关命令
firewall-cmd --state # 查看防火墙状态
systemctl stop firewalld.service # 停止防火墙
systemctl disable firewalld.service # 禁止防火墙开机自启
Debian 更新命令
apt update -y
apt install curl wget socat tar -y
CentOS 更新命令
yum update -y
yum install curl wget socat tar -y

========================= 脚本 =========================

一键DD系统脚本 支持国内小鸡,常年更新
https://blockxyz.notion.site/DD-fb837703b3ac4011bb2362e3a56ac148

  1. 萌咖 http://moeclub.org/ dd脚本知名度最高的之一,作者博客已经关闭很久了,但是
    https://github.com/MoeClub/Note还在,还有 https://moeclub.org/attachment/LinuxShell/ 可以访问。
  2. CXT https://github.com/MeowLove/Network-Reinstall-System-Modify
    这个脚本也不戳,有一个好处就是支持centos高版本的,两者脚本都比较简单,两步就可以搞定
  3. https://git.beta.gs/ 是多合一的,据说非常适合国内机器
  4. InstallOS
    DD Linux systems on VPS with support for Debian 9, 10, 11 and Ubuntu 18.04, 20.04.
    https://github.com/yeahwu/InstallOS
    wget https://raw.githubusercontent.com/yeahwu/InstallOS/main/InstallOS.sh && bash InstallOS.sh
    复制代码
  5. 五个实用的VPS主机一键重装系统工具一键DD安装Linux和Windows
    https://wzfou.com/5-vps-chongzhuang/

一、一键重装AutoReinstall.sh
项目:https://github.com/hiCasper/Shell

二、CXTHHHHH重装脚本
项目:https://github.com/MeowLove/Network-Reinstall-System-Modify

三、94ish一键网络重装系统
项目:https://github.com/chiakge/installNET

四、一键网络重装脚本集合
项目:https://github.com/veip007/dd

五、MoeClub一键重装脚本
作者:https://moeclub.org/
备份:https://github.com/freehao123/dd

MoeClub一键重装脚本是上面四个脚本的核心,上面的优化版和修改版都是基于MoeClub一键重装脚本而来的

MoeClub.org萌咖一键网络重装支持 Oracle/甲骨文/亚马逊Amazon
https://www.geekn.net/25.html
1.本脚本为MoeClub.org萌咖大佬制作,仅作转发和本人自定义修改,不涉及任何商业用途。
原作者地址: https://moeclub.org/2018/04/03/603/

========================= 镜像 =========================
http://vps0.net/

https://536000.xyz/

https://www.ddpan.com/

https://dd.1234234.xyz/

秋水逸冰 Windows 2012/2016/2019/2022 10/11 DD 镜像

适用于 UEFI 启动的多个 Windows 系统 DD 镜像
https://teddysun.com/656.html
分别是:

  1. Windows Server 2012 R2 Datacenter
  2. Windows Server 2016 Datacenter (build: 14393.5006)
  3. Windows Server 2019 Datacenter (build: 17763.2686)
  4. Windows Server 2022 Datacenter (build: 20348.587)
  5. Windows 10 Enterprise LTSC (build: 19044.1288)
  6. Windows 11 Pro for Workstations 21H2 (build: 22000.194)

适用于 BIOS 启动的 Windows Server 2022 Datacenter DD 镜像
https://teddysun.com/629.html

适用于 BIOS 启动的 Windows 11 Pro for Workstations 21H2 DD 镜像
https://teddysun.com/642.html

适用于 BIOS 启动的 Windows 10 Enterprise LTSC DD 镜像
https://teddysun.com/640.html

适用于 BIOS 启动的 Windows Server 2019/2016/2012R2 Datacenter DD 镜像
https://teddysun.com/545.html
分别是:

  1. Windows Server 2019 Datacenter(Build: 17763.2686)
  2. Windows Server 2016 Datacenter(Build: 14393.5006)
  3. Windows Server 2012 R2 Datacenter

nat.ee大佬DD包
https://cfyes.ga/