解决centos 7 minimal配置下ifconfig无效的问题

自我总结:Centos7-Minimal安装后应该干什么 首先我是只小菜鸟,还不是很熟练,我也是弄了N次之后才开始慢慢总结这么一点经验 刚安装完成 ifconfig 和yum命令是不能用的,需要修改配置文件 使用命令vi /etc/sysconfig/network-scripts/ifcfg-ens33(这里的ifcfg-ens33是我电脑里的文件名,每台电脑可能不一样,如果不知道你电脑里的是什么,先cd /etc/sysconfig/ne... 阅读详情

最近买了批新服务器,Intel 金牌CPU,双卡,128G内存,40T硬盘。

打开机器以后首先要确认联网的问题,直接上命令发现,ifconfig command not found。

问题其实是没有安装这个ifconfig。

下面直接说重点:

1.nmtui进入Network Manager,如下:

2.选择激活一个连接,激活其中的一个网卡。

3.选择编辑一个连接,把刚刚激活的那个网卡,选择为

4.选择Edit进入DHCP配置:

选择IPv4 CONFIGURATION为Automatic,并且勾选Automatically connect选项。

5.最后返回命令行,输入:service network restart

   来重新网络服务,此时就可以正常连接网络了。

6.现在有了网络连接后,就可以使用

 yum install net-tools

来安装网络工具,安装完毕之后,诸如ifconfig等命令就都能用了。

7.如果此时第6条命令无效,显示Cannot find a valid baseurl for repo: base/7/x86_6

打开 vi /etc/sysconfig/network-scripts/ifcfg-eth0(每个机子都可能不一样,但格式会是“ifcfg-eth数字”),把ONBOOT=no,改为ONBOOT=yes
重启网络:service network restart

至此,精简版的Linux系统成功安装ifconfig命令,同时正确连接上网络。

Mac VMware Fusion安装CentOS 7.9 Minimal:ARM架构虚拟机配置与避坑指南 虚拟机技术通过在单一物理主机上创建隔离的虚拟化环境,实现了资源的灵活分配与系统隔离。其核心原理基于Hypervisor层对硬件资源的抽象与管理,为软件开发和测试提供了高度可控的沙盒环境。这一技术在构建本地开发测试平台、实现环境一致性方面具有重要价值,尤其适用于需要在macOS等非Linux宿主机上模拟Linux生产环境的场景。本文聚焦于使用VMware Fusion这一主流虚拟化软件,在Apple Silicon Mac上部署CentOS 7.9 Minimal系统,详细解析了从镜像选择、资源规划到网络配置 阅读详情

相关推荐

配置 Druid 数据源及密码加密-SpringBoot 实战基础

在SpringBoot中配置 Druid 数据源及密码加密的方法前文集成 MyBatis Plus,实现了一组增删改查接口。在启动服务时,从控制台中可以看出 Spring Boot 默认使用 Hikari 作为数据库连接池,Hikari性能很优秀。在国内使用较多的连接池还属阿里开源的 Druid,中文发音为德鲁伊。Druid 结合了 C3P0、DBCP 等 DB 池的优点,同时还加入了日志监控,可以很好的监控 DB 池连接和 SQL 的执行情况。...

m0_67698950的博客 955

minio - 服务的搭建和使用

曾几何时,之前说的搭建分布式文件存储系统,好像唯一的选择就是 fastDfs,慢慢的发现好像周围的团队和项目都在选择Minio,进入了视野。 Minio与Amazon S3云存储服务兼容,采用Golang实现,服务端支持Windows、Linux、 OS X和FreeBSD等操作系统;客户端支持Java、Python、Javacript、 Golang语言,下面会有基于java的sdk的相关集成和操作。 Minio是Apache License v2.0下发布的对象存储服务器。它与Amazon S3云

it_lihongmin的博客 1万+

ST7789P3初始化配置

【代码】ST7789P3初始化配置。

zqq_1314的博客 4157

【Minio】常见问题解决思路

【Minio】常见问题解决思路

皮卡丘的博客 3901

计算光刻效率革命:为什么Hopkins模型比Abbe模型快?深入解析TCC的魔力

本文深入解析了计算光刻中Hopkins模型相比Abbe模型的效率优势,重点探讨了TCC(透射交叉系数)的工程智慧。通过预计算光学系统特性并复用TCC矩阵,Hopkins模型实现了数量级的加速,特别适用于复杂照明条件下的光刻仿真。文章详细介绍了TCC的物理意义、模态分解技术以及GPU并行计算等关键加速策略,为半导体制造中的光刻工艺优化提供了实用见解。

weixin_33364627的博客 390

避开这些坑!用Python ReportLab生成PDF时字体处理与中文排版的5个关键技巧

本文针对Python ReportLab库在PDF自动化生成中常见的中文排版难题,提供了五个关键技巧。内容涵盖字体注册的稳健策略、段落样式的精细控制、表格内中文的换行对齐、页面布局管理以及性能优化,旨在帮助开发者彻底解决中文乱码、排版错位等问题,生成专业美观的PDF文档。

weixin_29250403的博客 625

springcloudgateway的routes数组应该从0开始,否则报以下错误were left unbound.

2020-06-09 09:03:27.569 ERROR org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter Line:40 - Binding to target [Bindable@5327a06e type = java.util.List<org.springframework.cloud.gateway.route.RouteDefinition>, value = ‘provided’, anno

qq_34412985的博客 2865

告别玄学调试:用STM32CubeMX和逻辑分析仪搞定DP83848的RMII与SMI接口

本文详细介绍了如何使用STM32CubeMX和逻辑分析仪调试DP83848的RMII与SMI接口,帮助开发者超越表象,直接观察底层通信波形。通过实战案例和高级调试技巧,解决常见问题如时钟偏移、信号完整性等,提升网络接口的稳定性和可靠性。

weixin_30752699的博客 306

CentOS 7 mini 运行环境搭建与测试——CentOS Mini 安装ifconfig工具【云原生开发部署实践笔记】

虽然CentOS已经更新到Stream 9 版本,但基于大多数企业和单位多数使用CentOS 7版本作为运行底座,7版本也一直在更行维护,此实践基于CentOS 7 Mini版本搭建。(8和9版本的CentOS系统命令少有差别,但主要用到的其实都差不多,最大的差别在于系统内核与自带的软件组件和库比较新。如果企业开发部署对兼容性有要求,应选择其要求或匹配版本。

耕耘——从菜鸟到高手的蜕变 1205

STM32F407驱动OV2640摄像头:从SCCB协议到I2C模拟的保姆级避坑指南

本文详细介绍了STM32F407驱动OV2640摄像头的完整流程,重点解析SCCB协议与I2C的关键差异,并提供GPIO模拟实现方案。通过实战案例和调试技巧,帮助开发者避开常见陷阱,实现稳定的图像采集功能。

weixin_28700411的博客 349

2025年美赛数学建模C题 奥运奖牌表的模型研究及Matlab代码

2025年美赛数学建模C题 奥运奖牌表的模型研究及Matlab代码

前程算法屋的博客 174

CentOS7Minimal版本安装完成后查看ip输入ifconfig报错:ifconfig command not found

因为最近不是太忙,就想要安装几个虚拟机学习用。安装的的是CentOS7 Minimal版本。 但是安装完之后想要查看ip的时候出问题了。报错说:ifconfig command not found。 根据在网上找到的处理方法。顺利解决了问题。解决方法如下: 1、查看是否真的没有设置IP地址: 命令行中输入ip addr,若看到有ip地址,则说明已设置正常,若没有则需要设置一个。 2、确认sbin...

ccyy 641

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

centos7 minimal最小化配置

                                                什么都没有的 centos7 minimal最小化配置1、首先是看你的以太网适配置属性连上网络都有ip地址网关子网掩码等等。。。。vim /etc/sysconfig/network-scripts/ifcfg-ens192 配置好后 service network restart 2、WMwa...

qq_39511030的博客 1541

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

Centos7 minimal安装后的一些配置(解决ifconfig、vim等not found问题)

网络配置 ip addr:查看网卡地址会发现虚拟网卡没有inet属性(ip) nmcli d:网络管理命令行工具查看网卡设备状态,发现网卡未连接 nmtui:进入网络管理界面,编辑网卡操作如下,进行开机自动连接 Edit a connection edit IPv4 CONFIGURATIOPN <Automatic> [x]Automatically connect syst...

github_38641765的博客 1031

CentOS 7 minimal配置网络连接及net-tools安装

在Virtual Box中安装好CentOS 7的minimal后,第一件事就是设置网络访问。 首先需要用 nmtui 命令进入 Network Manager,如下: 选择 Edit a connection 来配置你的网络连接: 选择Edit进入DHCP配置: 选择IPv4 CONFIGURATION为Automatic,并且勾选Automatically co

crxmai的专栏 2万+

Linux 操作系统 017-CentOS7 Minimal安装

本节关键字:Linux、操作系统、CentOS7 Minimal、yum离线源配置、VMware Tools安装、gcc安装 本节相关指令:vi、ifconfig、perl、gcc、cd、cp、yum

Tianwx的博客 938

CentOS7:ifconfig command not found解决

问题描述 我是在VirtualBox上装的CentOS 7 Minimal,网上搜了一下原因,可能是CentOS 7的最小化安装少了一些工具,比如 ifconfig 及 netstat 等。因此解决办法很简单,把它们安装上就好了。 首先判断一下是不是缺少了ifconfig,它是在/sbin目录下的 [root@localhost ~]# cd /sbin` [root@localhost sbin

Dandelion_drq的专栏 6万+

Centos7 Minimal下载安装配置,Centos7 Minimal网络配置

本文解决如下问题: 1.怎么从163开源镜像网里面下载Linux系统镜像文件? 2.window能ping通虚拟机,虚拟机ping不通window 3.虚拟机能ping通window,windowping不通虚拟机 4.Centos7 最小化安装无法使用ifconfig 和yum命令 Centos7 镜像在哪里下载呢? https://mirrors.aliyun.com/cen...

或非与博客 7004

centos7 Minimal安装没有ifconfig

centos7Minimal 安装后 ip addr 系统的网卡没有分配IP地址 网卡为ens33 cd /etc/sysconfig/network-scripts vi ifcfg-ens33 将ONBOOT=no修改为ONBOOT=yes保存退出 重启网络服务 service network restar ip addr 查看是...

aituochang1886的博客 208

centos7安装minimal后配置网络

1.DHCP网络配置(推荐) 刚安装完的centos系统是未联通网络的(通过 ping www.baidu.com测试即可) 一、首先登录系统 二、cd /etc/sysconfig/network-scripts(可以通过Linux的TAB键进行补全,避免字母输入出错) 三、列出该目录下的文件 ls 命令或者 ll命令(注意大小写,Linux是严格区分大小写的,不然报错)如图所示 注...

yhblog的博客 4952

安装配置生产级CentOS7 Minimal

前言 在开发过程中有时候需要Centos环境,本文将记录安装CentOS7 Minimal的过程 一、下载安装包 在官网下载CentOS7 Minimal(简化版)安装包 二、在虚拟机中安装系统 在虚拟机中安装系统 三、配置网络 新的系统是没有连接网络的下面我们通过固定IP的方式来配置网络 vi /etc/sysconfig/network-scripts/ifcfg-XXXX(...

Bonrui编程路 1921

centos7 minimal virtualbox下无法联网问题

在mac下使用virtualbox安装了centos7 minimal版本,安装后发现各种方式均无法联网,然后找了了这一篇通过设置可以通过桥接方式联网了。 同时由于centos7 minimal中没有默认安装ifconfig命令,找了一下,可以通过yum search ifconfig找到对应的包,然后yum install 包名来安装即可。 以下是转载的正文: 1 问题描述

kxalpah的专栏 791

VM12下Centos7,ifconfig命令报错解决办法。

1,安装完虚拟机和镜像文件(CentOS-7-x86_64-DVD-1810)后,在linux下输入ifconfig报错,错误如下。 2,根据网上资料显示,好像是CentOS 7的最小化Minimal版本安装少了一些工具,比如 ifconfig 及 netstat 等: 确定是否是没有安装ifconfig,如果没有,添加上去。 查看linux的sbin目录下有没有ifconfig命令: 3,...

weixin_45410601的博客 569

虚拟机安装Centos7-Minimal后的网络配置

1.centos7-minimal安装后ifconfig和yum是无法使用的 将Vmware设置为NAT模式(我用的Vmware14) 点击左上角 编辑–>虚拟网络编辑器–>VMnet8–>更改设置 然后会出现如下界面 3.将红框中的取消掉,然后点击NAT设置 4.记住红框中的内容,然后打开 5.右键–属性–ipv4–属性,将子网掩码与默认网关设置为与NAT里面的一...

wyy_95的博客 1126
上一篇: centos7 + ambari 2.6安装与系统配置过程记录
下一篇: ShapeDTW代码运行问题记录与解决方法
UnknownBody
博客等级 码龄16年 5601粉丝 4754原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

UnknownBody

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值