作者:run

硬盘扩容后操作

https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html sudo growpart /dev/nvme1n1 1 [XFS 文件系统] sudo xfs_gro

run run 发布于 2024-01-24

docker清理垃圾

docker清理垃圾 docker system prune --volumes

run run 发布于 2024-01-16

linux centos 关闭swap分区

linux centos 关闭swap分区 1.关闭swap swapoff -a 2.取消挂载,注释掉swap行 vi /etc/fstab 3.重启测试 reboot free -h

run run 发布于 2023-11-12

Linux centos jar 包开机自启动

Linux centos jar 包开机自启动 vi /etc/systemd/system/dog.service [Unit] Description = dog service After = network.target syslog.target Wants = network.ta

run run 发布于 2023-11-12

linux centos 安装openjdk1.8

linux centos 安装openjdk 1.8: sudo yum install -y java-1.8.0-openjdk-devel.x86_64 sudo echo export JAVA_HOME=/usr/lib/jvm/java >> /etc/profile sudo ech

run run 发布于 2023-11-12

linux centos 安装 nslookup 命令

问题: nslookup www.baidu.com -bash: nslookup: command not found 解决方案: yum -y install bind-utils

run run 发布于 2023-11-11