Repository navigation
RockyLinux 9 基础配置与使用 #60
shenweiyan
announced in
1.3-软件
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
今天终于在阿里云入手了一台 2核(vCPU)+ 2GiB + 3Mbps 的 ECS,安装了最新的 Rocky Linux release 9.3 (Blue Onyx),记录一下开箱后的一些基础配置。
Hostname
创建新用户
使用
adduser命令将新用户添加到系统中:用户添加超级权限
把
shenweiyan用户添加超级权限(/etc/sudoers):自定义快捷方式
在
~/.bashrc最后新增一下用户自定义的快捷方式。epel-release
# 下面两个命令都可以安装 sudo dnf install epel-release sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpmHtop 和 Btop
Htop 是一个基于 C 编写的跨平台的交互式流程查看器,
htop是top的一个增强替代品,提供了更加友好的用户界面和更多的功能,相比系统自带的top更加直观好用。btop也是一个改进版的 Linux top 命令,这个命令不仅列出了各种系统使用情况,包括内存、磁盘、网络和进程,而且还允许与鼠标互动。即使是在服务器安装上,你也可以在btop上指指点点,以树形方式查看进程,隐藏或显示某些显示,并访问选项菜单,在那里你可以调整显示的外观和感觉。Docker 安装与使用
主要参考《How To Install and Use Docker on Rocky Linux 9》,具体步骤如下:
add the official Docker repository
install Docker
start the Docker daemon
Verify that it’s running
make sure it starts at every server reboot
sudo systemctl enable docker配置非 root 用户使用 Docker
sudo usermod -aG docker username newgrp docker #更新docker用户组All reactions