Centos中无法使用make,make install,命令 make: command not found 2023年03月25日 管理员 104 阅读 Centos中无法使用make,make install,命令 make: command not foundyum -y install gcc automake autoconf libtool make...
在 CentOS 8 中安装软件出现 “错误:为仓库 ‘appstream’ 下载元数据失败” 的解决办法 2023年03月21日 管理员 573 阅读 遇到上述错误之后,更换了阿里云源也不能解决问题,最终使用如下方法完美解决。在 CentOS 8 中使用 yum 命令安装软件时会出现 “错误:为仓库 ‘appstream’ 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirrorlist“,如下图所示:20230301112409.png出现这个错误提示的原因是在2022年1月31日,CentOS 团队从官方镜像中移除 CentOS 8...
CentOS 如何挂载硬盘 2022年12月21日 管理员 128 阅读 CentOS 如何挂载硬盘1、查看当前未挂载的硬盘# fdisk -l2、创建硬盘分区# fdisk /dev/sdb根据提示,依次输入"n","p" "1",两次回车,"wq",分区就开始了,很快就会完成。3、格式化硬盘# mkfs.ext4 /dev/sdb4、建立挂载目录(非必须,可以挂载到现有目录)# mkdir -p /mnt/data5、挂载硬盘# mount /d...
Centos yum安装Mysql 2022年10月25日 管理员 107 阅读 一、Mysql 5.7安装1、下载Mysql官方提供的yum repositorywget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpmyum -y install mysql57-community-release-el7-10.noarch.rpm2、yum安装Mysqlyum -y install mysql-community-server3、查...
CentOS7用yum安装Nginx及使用 2022年10月25日 管理员 144 阅读 CentOS7用yum安装Nginx及使用第一步:yum安装nginx1:添加源sudorpm-Uvhhttp://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm2:安装nginxsudoyuminstall-ynginx出现Complete!代表安装完成!3:启动nginxsystemctlstartnginx.service4:查看防...
Centos安装make 2022年08月11日 管理员 153 阅读 Centos安装makeCentOS 中无法使用make,make install 命令提示错误:make: command not foundmake是gcc的编译器,一定要安装1、安装:yum -y install gcc automake autoconf libtool make2、安装g++:yum install gcc gcc-c++...
CentOS 8安装docker方法 2022年08月05日 管理员 155 阅读 CentOS 8安装docker方法1、进入/etc/yum.repos.dwget http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repoyum makecache2、安装依赖yum -y install yum-utils device-mapper-persistent-data lvm2安装docker-cednf -y install https://download.doc...
CentOS8安装Redis 2022年08月05日 管理员 105 阅读 CentOS8安装Redis1、创建资源文件/etc/yum.repos.d/redis.repo编辑内容如下:[Redis] name=Redis baseurl=http://packages.redis.io/rpm/rhel7 enabled=1 gpgcheck=12、下载Key及导入curl-fsSLhttps://packages.redis.io/gpg>/tmp/redis.key sudorpm--import/tmp/redis...
CentOS8进行RabbitMQ集群配置 2022年08月02日 管理员 105 阅读 CentOS8进行RabbitMQ集群配置一、修改各结点主机名vi /etc/hostname目前是两台,一个修改为RabbitMaster另一个修改为RabbitCluster二、修改hostsvi /etc/hosts将两台结点加入192.168.0.100 RabbitMaster192.168.0.200 RabbitCluster以上的IP请以实际IP替换。三、同步.erlang.cookie文件在主结点上(RabbitMaster)上执行scp...
CentOS8下安装RabbitMQ的方式方法 2022年08月02日 管理员 96 阅读 CentOS8下安装RabbitMQ的方式方法一、源配置curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bashcurl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash二、安装E...
CentOS8 Yum源更新设置 2022年07月25日 管理员 134 阅读 简单粗暴的文式:cd /etc/yum.repos.drm -rf *vi CentOS.repo将下载内容写入[AppStream]name=CentOS-$releasever - AppStream#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=AppStream&infra=$infrabaseurl=http...
CentOS下firewall-cmd常用命令 2022年06月02日 管理员 114 阅读 CentOS下firewall-cmd常用命令开启防火墙systemctl start firewalld.service防火墙开机启动systemctl enable firewalld.service关闭防火墙systemctl stop firewalld.service查看防火墙状态firewall-cmd --state查看现有的规则firewall-cmd --list-all重载防火墙配置firewall-cmd --reload添加单个单端...
CentOS 安装Redis 2023年04月15日 管理员 105 阅读 CentOS 安装Redis一、安装gcc依赖由于 redis 是用 C 语言开发,安装之前必先确认是否安装 gcc 环境(gcc -v),如果没有安装,执行以下命令进行安装[root@localhost local]# yum install -y gcc python3 tcl二、下载并解压安装包[root@localhost local]# wget http://download.redis.io/releases/redis-5.0.3.tar....
Centos8可用repo文件互联网yum源 2022年05月31日 管理员 179 阅读 Centos8更换官方默认更新源CentOS-Base.repo⒈备份官方默认更新源文件cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak⒉编辑打开默认更新源CentOS-Base.repovi /etc/yum.repos.d/CentOS-Base.repo复制为以下内容(清华大学镜像站)https://mirrors.tuna.tsinghua.edu....
CentOS8 错误:为 repo ‘appstream‘ 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirrorlist的解决办法 2022年05月31日 管理员 87 阅读 CentOS8 错误:为 repo ‘appstream‘ 下载元数据失败 : Cannot prepare internal mirrorlist: No URLs in mirrorlist的解决办法出现上述办法的原因是CentOS已经停更,但因为CentOS系统的易用性,国内有很多继续延伸的源可以用。要解决上述方法。首先先将/etc/yum.repos.d/下的所有文件备份或者删除备份:cp /etc/yum.repos.d/CentOS-Base....
ubuntu server配置静态ip地址 2022年05月17日 胡振强 160 阅读 ubuntu server配置静态ip地址,安装完ubuntu server 20.04版本的服务器,发现没有设置固定ip,使用的是dhcp获取ip。要将ubuntu 20.04 server的动态ip地址修改为静态ip地址,只需要修改/etc/netplan目录下的00-installer-config.yaml文件即可,具体如下:编辑网络配置文件:$sudovi/etc/netplan/00-installer-config.yaml修改配置如下:#T...
CentOS停更后,将软件源变更成国内,继续使用的方式方法 2022年04月28日 胡振强 99 阅读 CentOS停更后,将软件源变更成国内,继续使用的方式方法sudo sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*sudo sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS...
Debian中安装MySQL8.0.2的实现过程 2022年04月16日 胡振强 103 阅读 Debian中安装MySQL8.0.2的实现过程//查询包是否存在find / -name libncurses.so.5//安装apt install ncurses libncurses-dev libncurses5//映射ln -s /lib/libncurses.so.5 /usr/lib/libtinfo.so.5apt install libaio-dev libnuma-dev添加用户组和用户groupadd mysqluseradd -r...
Debian系统终端中文乱码的解决方法 2022年03月16日 胡振强 323 阅读 Debian系统终端中文乱码的解决方法1、首先安装中文字体apt-get updateapt-get install ttf-microsoft-simsun ttf-microsoft-simheiapt-get install ttf-microsoft-simyou ttf-microsoft-simli(说明,Debian和Ubuntu以及树莓派使用的是精简后的apt而不是apt-get,不同的版本操作可能不太一样,使用时尝试一下切可)2、切换选择...