
Linux
CentOS 8、Ubuntu 20.04
-周子峰-
一个从不转载,专注于原创的博主
展开
-
CentOS8永久修改主机名
系统:腾讯云CentOS 8.21. 修改主机名查看主机名[root@VM-0-16-centos ~]# hostnameVM-0-16-centos修改主机名为 zifeng[root@VM-0-16-centos ~]# hostnamectl set-hostname zifeng[root@VM-0-16-centos ~]# hostnamezifeng2. 修改hosts文件修改 /etc/hosts 文件,使IP映射到新的主机名[root@VM-0-.原创 2020-09-27 23:41:34 · 5549 阅读 · 0 评论 -
CentOS8安装配置MySQL8.0
系统:阿里云CentOS 8.21. 安装MySQL使用新的dnf包管理器安装MySQL# dnf install @mysql -y启动mysqld服务,并设置其开机自启# ystemctl enable mysqldCreated symlink /etc/systemd/system/multi-user.target.wants/mysqld.service → /usr/lib/systemd/system/mysqld.service.# systemctl sta.原创 2020-09-05 17:05:10 · 526 阅读 · 0 评论 -
CentOS8防火墙配置
系统:阿里云CentOS 8.21. 查看防火墙(firewalld)服务的状态阿里云的CentOS 8.2,默认firewalld服务是关闭的# systemctl status firewalld● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor > Act.原创 2020-08-16 20:52:50 · 10917 阅读 · 1 评论 -
CentOS8挂载硬盘
1. 查看硬盘的分区信息使用 fdisk -l 查看分区信息[root@zifeng ~]# fdisk -lDisk /dev/sdb:465.8 GiB,500107862016 字节,976773168 个扇区单元:扇区 / 1 * 512 = 512 字节扇区大小(逻辑/物理):512 字节 / 4096 字节I/O 大小(最小/最佳):4096 字节 / 4096 字节磁盘标签类型:dos磁盘标识符:0x89748409Disk /dev/sda:238.5 GiB,256原创 2020-07-12 23:37:27 · 7888 阅读 · 0 评论 -
CentOS8安装htop
1. 安装EPEL源# yum install epel-release -y2. 安装htop# yum install htop -y效果图原创 2020-03-29 18:07:43 · 2077 阅读 · 0 评论 -
CentOS8更改yum源
1. 备份原始的yum源# cd /etc/yum.repos.d# cp CentOS-Base.repo CentOS-Base.repo.bak2. 下载对应版本的repo文件# wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo3. 清除旧的yum缓存并生成新的yum缓存# yum cl...原创 2020-03-29 17:49:44 · 24294 阅读 · 2 评论