CentOS-7.6的安装和基本配置
本文为最小化简易版安装,安装后需要后续配置网络等才能更好的使用,建议小白可以参考更详细更完整的安装方法,链接为:
https://www.cnblogs.com/clsn/p/8338099.html#auto_id_22
说明:为了最小化安装后更方便配置网络,建议安装时使用在“软件选择”中的基本环境下选择【带GUI的服务器】安装,这样方便网络 ...
CentOS系统下软件包的制作方法和过程详解
总的情况下Linux下软件安装主要有三种方式:
一种是源码安装,需要用户自己手动编译
另一种是RPM包(RedHat Linux Packet Manager),通过RPM命令就可以实现安装
还有一种为*.bin文件,安装方法与Windows下的安装过程类似
通常情况下Linux 安装软件主要通过以下两种方式
① 文件名形如xxx.i386.rpm ,软件包以二进制形 ...
centos7如何进入紧急修复模式?
打开centos7页面出现:
welcome to emergency mode!after logging in ,type “journalctl -xb” to view system logs,“systemctl reboot” to reboot ,“systemctl default” to try again to boot into default mode。
give root password for maintenance
(?? Control-D?? ...
centos 安装activeMq
Apache ActiveMQ是一个免费的开源消息代理和集成模式服务器。它支持来自JAVA、c++、C、Python、Perl、PHP等多种语言的客户端和协议。它提供了许多功能,如消息组、虚拟目的地、通配符和组合目的地等。它可以很容易地集成到spring应用程序中。
工欲善其事必先利其器,那么再使用这个mq之前,我们得先安装activemq,那么我们 ...
centos 7 重新设置分区大小
一、基础概念Cent0S 7默认启用LVM2(Logical Volume Manager),把机器的一块硬盘分为两个区sda1和sda2,其中分区sda1作为系统盘/boot挂载,少量空间;sda2作为一个物理卷并且完全作为逻辑卷组VG(Volume Group)centos,在这个逻辑卷组centos中建立三个逻辑卷LV(Logical Volume)root和home还有swap,分别挂载到根目录/和/ ...
Centos 7.3 镜像制作
1.在KVM环境上准备虚拟机磁盘
[root@localhost ~]# qemu-img create -f qcow2 -o size=50G
/opt/CentOS-7-1511-x86_64_50G.qcow2
[root@localhost ~]# qemu-img info CentOS-7-1511-x86_64_50G.qcow2
image: CentOS-7-1511-x86_64_50G.qcow2
file format: qcow2
virtual size: 50G (53687091200 bytes)
disk size: 196K
cl ...
centos使用教程
@目录一、常用命令1.基础命令2. 进阶命令ls /|grep p3.高级命令service httpd startinit 0hatpoweroff二、自有服务1.运行模式2. 用户组管理3. 用户组管理4. 服务管理chkconfig --listchkconfig --del 服务名chkconfig --add 服务名(注:服务和进程不一样,必须保证service start能运行)chkconfig --level 连在一起的启动级 ...
CentOS 7基本配置
1.CentOS 7网卡配置:
[root@www ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
(1)默认DHCP方式配置如下:
TYPE="Ethernet"
BOOTPROTO="dhcp"
DEVICE="eth0"
ONBOOT="yes"
[root@www ~]# systemctl restart network.service
[root@www ~]# service network restart # (centos6.x)
DNS ...
centos docker 安装mysql 8.0
centos 版本 CentOS Linux release 7.5.1804 (Core)
内核版本: 3.10.0-862.el7.x86_64
下载最新版mysql
docker pull mysql
启动镜像
docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=woshimima -d mysql
进入命令
docker exec -it mysql /bin/bash
连接数据库
mysql -uroot -p woshimima
查看 ...
centos 升级gcc
CentOS 7官方源的gcc最新版本是4.8.5,发布于2015年,年代久远且不支持c++14。要编译c++14及以上项目,必须要升级现有版本或者安装高版本的gcc。
解决办法有两种:手动编译(也可以从其他机器拷贝或者网上下载),或从源安装。
大多数情况下本人都不推荐从源码编译,不仅因为编译过程中常会出现各种依赖问题需要手动解决, ...
如何解决centos7双系统后丢失windows启动项?
windows 7、8/10 安装centos7双系统后,默认会将mbr改写成为grub2,而默认的centos7不识别windows 的ntfs分区,所以启动项没有windows。 下面随小编一起去看看解决centos7双系统后丢失windows启动项的方法吧!
可以用3条命令,即可将windows添加到grub2的启动项。
首先保证互联网是通的。
1.yum -y install epel-release ...
centos 联合编译动态连接库详解
么是动态链接库
Windows上是dynamic linklibrary (DLL),后缀?xxx.dll
UNIX或Linux上是Shared Library .后缀是 xxx.so
将文件编译成.so格式的动态链接库
gcc -o libme.so wso.c -shared
将wso.c编译成 libme.so 库名为me
lib so为前缀跟后缀
联合编译
gcc -L /root/myc/ -l me ws.c -o newws
-L ...
CentOS系统中使用yum命令安装redis的方法
在linux CentOS系统中使用yum命令安装redis报错:
[root@localhost install]# yum install redis
Loaded plugins: fastestmirror
Setting up Install Process
Determining fastest mirrors
* base: mirrors.skyshe.cn
* extras: mirrors.163.com
这是因为,centos默认的安装源在官方centos.org上,而Redis在第三方的yu ...
在CentOS上安装Python3的三种方法
Centos7默认自带了Python2.7版本,但是因为项目需要使用Python3.x你可以按照此文的三个方法进行安装.
注:本文示例安装版本为Python3.5,
一、Python源代码编译安装
安装必要工具 yum-utils ,它的功能是管理repository及扩展包的工具 (主要是针对repository)
$ sudo yum install yum-utils
使用yum-builddep为Python3构建 ...
centos系统上部署安装minio - 指南
pre { white-space: pre !important; word-wrap: normal !important; overflow-x: auto !important; display: block !important; font-family: "Consolas", "Monaco", "Courier New", monospace !important; font-size: 14px !important; line-height: 1.6 !important; padding: 16px !important; margin: 16px 0 !importan ...
CentOS-Stream 9更换国内(阿里)yum源
1 CentOS9操作系统yum源路径
CentOS9操作系统yum源配置文件主要有两个,分别是centos.repo和centos-addons.repo
centos.repo 配置文件是 CentOS 系统中用于配置 yum 软件仓库(repository)的文件。这个文件定义了 yum 从哪些 URL 地址获取软件包。
路径:/etc/yum.repos.d/centos.repo
centos-addons.repo 配置文件是 Cent ...
centos停服,迁移centos7.3系统到新搭建的openEuler
背景
最近在做的事,简单来讲,就是一套系统差不多有10多台虚拟机,都是centos系统,版本主要是7.3、7.6、7.9,现在centos停止维护了,转为了centos stream,而centos stream的定位是:Red Hat Enterprise Linux (RHEL) 开发之前持续交付的发行版,作为rhel的上游,更新迭代比较频繁,不稳定,对于生产系统来说是无法接受的 ...
CentOS-7离线安装openssl-devel
1、下载相关安装包
keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm 快速下载地址:https://vault.centos.org/7.9.2009/os/x86_64/Packages/keyutils-libs-devel-1.5.8-3.el7.x86_64.rpm
krb5-devel-1.15.1-50.el7.x86_64.rpm 快速下载地址:https://vault.centos.org/7.9.2009/os/x86_64/Packages/krb5-devel-1.15.1-50.e ...
CentOS-7离线安装gcc
1、下载相关安装包
bzip2-devel-1.0.6-12.el7.x86_64.rpm 快速下载地址:https://vault.centos.org/7.9.2009/os/x86_64/Packages/bzip2-devel-1.0.6-13.el7.i686.rpm
cpp-4.8.5-44.el7.x86_64.rpm 快速下载地址:https://vault.centos.org/7.9.2009/os/x86_64/Packages/cpp-4.8.5-44.el7.x86_64.rpm
gcc-4.8.5-44.el7 ...
Centos7, 使用yum工具,出现 Could not resolve host: mirrorlist.centos.org
在 CentOS 7 中使用 yum 工具时,如果出现 "Could not resolve host: mirrorlist.centos.org" 的错误,通常是因为默认的镜像源无法访问。以下是一些常用的解决方法:
检查网络连接:首先使用 ping 命令测试网络连接是否正常。如果 ping mirrorlist.centos.org 不通,但 ping www.baidu.com 正常,说明 DNS 解析没问题,基本 ...