随笔分类 -  linux

摘要:方法一: 1.首先U盘启动,选择安装centos 7,一直等,最终进入命令行: dracut:# dracut:# cd /dev dracut:/dev# ls 查看你的U盘,一般是第二块硬盘sdb4。 如果还不确定,记下sdb3之后的几块盘,就拔出U盘, ls 几次 看看少了哪一个盘,一般就看不 阅读全文
posted @ 2025-01-10 20:10 西江月明 阅读(210) 评论(0) 推荐(0) 编辑
摘要:安装net-tools sudo yum install net-tools 安装dig命令,用于执行网络的DNS检查,安装bind-utils,安装好会有dig和nslookup命令 sudo yum install bind-utils 安装抓包工具:tcpdump yum install -y 阅读全文
posted @ 2024-08-30 20:23 西江月明 阅读(20) 评论(0) 推荐(0) 编辑
摘要:1.环境说明 系统:Ubuntu 24.04 环境:VMware下桥接静态IP设置 2.问题:ping www.baidu.com报错 [~] ping www.baidu.com ping: www.baidu.com: Temporary failure in name resolution 3 阅读全文
posted @ 2024-08-30 19:55 西江月明 阅读(180) 评论(0) 推荐(0) 编辑
摘要:使用wget或curl命令下载阿里云的yum源配置文件 sudo wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo sudo curl -o /etc/yum.repos.d/ 阅读全文
posted @ 2024-08-30 17:21 西江月明 阅读(1377) 评论(0) 推荐(0) 编辑
摘要:1.VMware里面设置网络为桥接模式 2.Ubuntu里面检查网卡名称 [~] ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loop 阅读全文
posted @ 2024-08-30 15:24 西江月明 阅读(519) 评论(0) 推荐(0) 编辑
摘要:1.设置网络 # 配置网络 vi /etc/sysconfig/network-scripts/ifcfg-ens33 #将里面的onboard设置为yes 2.修改计算机名 使用命令行: 打开终端。 使用 hostnamectl 命令可以直接修改主机名。例如,如果您想将主机名更改为 mynewho 阅读全文
posted @ 2024-08-29 00:00 西江月明 阅读(27) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示