腾讯轻量服务器 Debian 12 配置

一. 启用 bash 颜色,ll 别名

cd ~
ls -al
nano .bashrc

取消以下行的注释

export LS_OPTIONS=’–color=auto’
eval “$(dircolors)”
alias ll=’ls $LS_OPTIONS -l’

source .bashrc 生效

二. 卸载无用服务,释放内存

使用腾讯云debian镜像安装的系统中已默认启用了相关的监控功能,消耗了本就不富裕的内存资源。所以安装完系统第一件事就是卸载这些监控程序。

卸载 BaradAgent

  • 登录云服务器后,执行命令 cd /usr/local/qcloud/monitor/barad/admin,进入 BaradAgent 安装目录。
  • 执行./uninstall.sh命令卸载 BaradAgent。该命令不显示结果,如果不存在/usr/local/qcloud/monitor/barad文件夹,则说明卸载成功。

卸载 Sgagent

  • 执行命令 cd /usr/local/qcloud/stargate/admin,进入 Sgagent 安装目录。
  • 执行./uninstall.sh
阅读全文

Ubuntu Server 设置静态ip

编辑网络配置文件 nano /etc/netplan/50-cloud-init.yaml

保存,应用设置 netplan apply

阅读全文

Ubuntu Server 设置全局代理脚本

新建脚本文件

输入以下内容

阅读全文

Ubuntu Server APT 代理设置

编辑apt配置文件

增加自定义代理

保存退出即生效

阅读全文

Ubuntu Server 启用 root 账户

在安装 Ubuntu Server 时无法启用 root 账户,只能创建一个非 root 账户。
在安装后如何启用 root 账户?

阅读全文