CentOS 7 最小安装 功能扩展

简介: 首先,我们使用centos一般使用yum安装文件,其条件: 1:必须能接入互联网;(设置ip) 2:有yum功能插件。(可手动下载安装) 注:没有ifconfig可以用ip addr和ip link可以查看,使用ifconfig: 需要安装“net-tools”,执行下命令,会报错: 扩展功能: 网络:net-tools  编辑器[option]:vim 编译器:c/c++

首先,我们使用centos一般使用yum安装文件,其条件:

1:必须能接入互联网;(设置ip

2:有yum功能插件。(可手动下载安装)

注:没有ifconfig可以用ip addr和ip link可以查看,使用ifconfig:

需要安装“net-tools”,执行下命令,会报错:

扩展功能:

网络:net-tools 

编辑器[option]:vim

编译器:c/c++: gcc /gcc-c++

[root@localhost ~]#  yum install -y net-tools

One of the configured repositories failed (未知),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:
 ....
 Cannot find a valid baseurl for repo: base/7/x86_64

解决:

在域名服务器配置中,添加一个8.8.8.8(或者其他),就解决了:
# vi /etc/resolv.conf  
add:
#Generated by NetworkManager  
nameserver 8.8.8.8  


之后,yum使用正常。

yum更新失败问题解决:Linux使用错误小结(CentOS)- yum更新软件失败

安装vim,编辑文本:

[root@localhost ~]#  yum -y  install vim*

vim安装问题失败: Linux使用错误小结(CentOS)- vim安装问题: Error: Nothing to do

安装GCC软件套件,C语言编写程序运行:

[root@localhost sshpass-1.05]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/home/install-files/sshpass-1.05':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details

[root@localhost ~]# yum install gcc

[root@localhost ~]# yum -y install gcc-c++
[root@Master scripts]# yum install -y perl-Module-Install.noarch

设置ip错误1:

CentOS Linux解决Device eth0 does not seem to be present

Bringing up interface eth0:  Device eth0 does not seem to be present,delaying initialization.

解决:

cd /etc/udev/rules.d/70-persistent-net.rules
记录eth1网卡的mac地址00:0c:29:50:bd:17
cd //etc/sysconfig/network-scripts/ifcfg-eth0
将 DEVICE="eth0"  改成  DEVICE="eth1"  ,
将 HWADDR="00:0c:29:8f:89:97" 改成上面的mac地址  HWADDR="00:0c:29:50:bd:17"
重启网络: service network restart


目录
相关文章
|
5天前
|
缓存 Ubuntu Linux
Linux中yum、rpm、apt-get、wget的区别,yum、rpm、apt-get常用命令,CentOS、Ubuntu中安装wget
通过本文,我们详细了解了 `yum`、`rpm`、`apt-get`和 `wget`的区别、常用命令以及在CentOS和Ubuntu中安装 `wget`的方法。`yum`和 `apt-get`是高层次的包管理器,分别用于RPM系和Debian系发行版,能够自动解决依赖问题;而 `rpm`是低层次的包管理工具,适合处理单个包;`wget`则是一个功能强大的下载工具,适用于各种下载任务。在实际使用中,根据系统类型和任务需求选择合适的工具,可以大大提高工作效率和系统管理的便利性。
54 25
|
15天前
|
监控 Linux PHP
【02】客户端服务端C语言-go语言-web端PHP语言整合内容发布-优雅草网络设备监控系统-2月12日优雅草简化Centos stream8安装zabbix7教程-本搭建教程非docker搭建教程-优雅草solution
【02】客户端服务端C语言-go语言-web端PHP语言整合内容发布-优雅草网络设备监控系统-2月12日优雅草简化Centos stream8安装zabbix7教程-本搭建教程非docker搭建教程-优雅草solution
65 20
|
21天前
|
存储 Prometheus 监控
Centos7.9版本安装collectd并开启写入rrd文件功能
Centos7.9版本安装collectd并开启写入rrd文件功能
77 13
|
1月前
|
存储 分布式计算 Hadoop
Centos7.9安装kerberos
Centos7.9安装kerberos
86 25
|
1月前
|
存储 Shell 网络安全
Centos7.9安装openldap
Centos7.9安装openldap
58 16
|
1月前
|
数据可视化 Linux 应用服务中间件
Centos7.9安装phpldapadmin
Centos7.9安装phpldapadmin
62 15
|
1月前
|
网络协议 Java 应用服务中间件
centos7环境下tomcat8的安装与配置
本文介绍了在Linux环境下安装和配置Tomcat 8的详细步骤。首先,通过无网络条件下的文件交互软件(如Xftp 6或MobaXterm)下载并解压Tomcat安装包至指定路径,启动Tomcat服务并测试访问。接着,修改Tomcat端口号以避免冲突,并部署Java Web应用项目至Tomcat服务器。最后,调整Linux防火墙规则,确保外部可以正常访问部署的应用。关键步骤包括关闭或配置防火墙、添加必要的端口规则,确保Tomcat服务稳定运行。
|
2月前
|
存储 Linux 数据安全/隐私保护
【CentOS 7】深入指南:使用LVM和扩展文件系统增加root分区存储容量
通过上述步骤,您可以在 CentOS 7 系统中使用 LVM 和扩展文件系统来增加 root 分区的存储容量。这种方法不仅灵活,还能在不中断系统运行的情况下扩展存储空间,非常适合生产环境。请确保在操作前备份重要数据,并仔细执行每一步骤,以确保系统稳定和数据安全。
146 6
|
3月前
|
SQL 存储 Linux
从配置源到数据库初始化一步步教你在CentOS 7.9上安装SQL Server 2019
【11月更文挑战第16天】本文介绍了在 CentOS 7.9 上安装 SQL Server 2019 的详细步骤,包括配置系统源、安装 SQL Server 2019 软件包以及数据库初始化,确保 SQL Server 正常运行。
168 4

热门文章

最新文章