LINUX篇 四月 27, 2022

Crontab @reboot 设置开机启动命令

文章字数 607 阅读约需 1 mins.

有时服务器断电后再开机启动需要启动一些服务,除了正常的 rc 命令可以实现外,之前我常用的是 systemctl service, 今天发现 crontab 的 reboot 标签也可以实现

crontab...

查看全文

LINUX篇 九月 03, 2021

CentOS 编译安装 busybox 简记

文章字数 4.4k 阅读约需 4 mins.

最近在内网部署一些服务,原生的 CentOS mini 系统很多命令没有安装无法使用,手上又没有可用的源,于是想到使用 busybox 来解决问题

    yum install -y gcc gcc-c++ glibc glibc-devel pcre pcre-devel openssl openssl-devel systemd-devel zlib-devel libmcrypt-devel glibc-static ncurses-devel
    cd tmp
    mkdir busybox
    cd...
查看全文

LINUX篇 八月 30, 2021

CentOS 时间同步服务器的搭建

文章字数 971 阅读约需 1 mins.

安装

   yum install ntp

修改配置文件 /etc/ntp.conf

将配置文件里的

  server 0.centos.pool.ntp.org iburst
  server 1.centos.pool.ntp.org iburst
  server 2.centos.pool.ntp.org iburst
  server 3.centos.pool.ntp.org iburst

全部注释掉, 换成本地时间服务器

server 127.127.1.0 iburst

测试

systemctl enable...
查看全文

LINUX篇 一月 27, 2021

CentOS 7 磁盘扩展方法

文章字数 6.1k 阅读约需 6 mins.

第一步: 磁盘分区

  1. 使用 fdisk -l 查看本机磁盘分区情况
[root@localhost core]# fdisk -l

磁盘 /dev/vda:85.9 GB, 85899345920 字节,167772160 个扇区
Units = 扇区 of 1 * 512 = 512 bytes
扇区大小(逻辑/物理):512 字节 / 512 字节
I/O 大小(最小/最佳):512 字节 / 512 字节
磁盘标签类型:dos
磁盘标识符:0x000b2efb

   设备 Boot      Start...
查看全文

LINUX篇 十月 09, 2020

CentOS 7 安装 bpytop 记录

文章字数 969 阅读约需 1 mins.

概述

在 CentOS 8 上安装 bpytop 很简单, 安装 epel 库后执行 dnf install bpytop 即可, 但是在 CentOS 7 的 epel 库里却没有这个 bpytop 包, 这里介绍如何在 CentOS 7 下安装 bpytop

步骤

  1. 安装 epel 库
    yum install epel-release
  1. 安装 snapd 并启用 snapd 套接字
    yum install snapd
    systemctl enable --now snapd.socket...
查看全文
加载更多
0%