分类: Linux
thumbnail

2.网络管理-Linux复习计划

Centos7 1.mii-tool eth0 查看网卡连接状态 eth0: negotiated 1000baseT-FD flow-control, link ok 2.route -n 查看路由IP不解析为主机名,netstat -nr 也可查……
thumbnail

Centos7修改网卡名为ethX格式

1.修改/etc/default/grub文件,GRUB_CMDLINE_LINUX 行添加biosdevname=0 net.ifnames=0 GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=centos/root rd.lvm.……
thumbnail

ElementaryOS/Ubuntu修改登录界面分辨率

安装elementaryos8后,显示器分辨率太高导致显示字体和UI元素太小,系统里可以设置显示器缩放比例,但是登录界面还是很小,经过尝试,算是找到了解决办法。 ……
thumbnail

修改sshd_config后sshd无法启动

只是修改个ssh端口,不至于无法启动,关闭selinux后可以正常启动,那么不关闭selinux怎么办呢?需要修改一下selinux策略 semanage port -l |grep ssh ssh_p……
thumbnail

RHEL10启用epel-release源

subscription-manager repos --enable codeready-builder-for-rhel-10-$(arch)-rpms dnf install https://dl.fedoraproject.org/pub/epel/epel-release-lates……
thumbnail

uv更换国内镜像源

windows文件管理器打开%APPDATA%,如果是Linux打开~/.config目录创建uv目录,创建uv.toml文件,写入 [[index]] url = "https://mirrors.aliyun.com/pypi/simp……
thumbnail

1.文件及用户管理常见命令-Linux复习计划

1.pwd 显示当前目录 2.cd 切换目录,cd -切换到上个目录 3.ls # ls -alhtR .: total 32K -rw-------. 1 root root 823 Jul 20 00:15 .bash_history drwx……
thumbnail

RHEL/RockyLinux 删除所有旧内核

一般更新多次后,会有很多旧内核留在系统上,一个一个卸载比较麻烦,RHEL(8+)系有个方便的命令 yum remove --oldinstallonly 如果要保留最新的3个内核 yum r……
thumbnail

openresty/nginx反向代理minio容器

openresty配置 upstream minio_s3 { least_conn; server localhost:9000; } upstream minio_console { least_conn; server localhost:900……
thumbnail

openresty/nginx反向代理gitlab容器具体配置

今天在尝试使用openresty反向代理gitlab,期间遇到一点问题记录一下。 /etc/gitlab/gitlab.rb添加下列几行 gitlab_rails['trusted_proxies'] = [ '127.0.0.……