换源
中科大镜像站:https://mirrors.ustc.edu.cn/help/
snullp 大叔开发的 配置生成器:https://mirrors.ustc.edu.cn/repogen/
安装常用软件
sudo -i # 切换到root用户
apt update -y # 升级packages
apt install wget curl sudo vim git # Debian系统比较干净,安装常用的软件
看自己需要
sudo apt install gcc # 下载gcc
sudo apt install g++ # 下载g++,看自己需要
sudo apt install python3-pip # 安装pip3
解压文件
.zip 解压:unzip FileName.zip 压缩:zip FileName.zip DirName 其他:https://blog.csdn.net/qq_54949314/article/details/118100118
安装综合工具箱
wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh
可以先下载下来,再上传。
注:如果搭建网站可以考虑使用宝塔面板,比较简单。
配置时区
sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime # 修改时区
常见命令
uptime # 系统当前时间、运行时间、目前登录用户、过去1分钟 5分钟 15分钟的平均负载
free -m # 内存情况
df -h # 硬盘空间大小
apt-get --purge remove <package> # 删除软件及其配置文件
pHqghUme
1
pHqghUme
1
pHqghUme
1
pHqghUme
@pHqghUme : 555
pHqghUme
1
pHqghUme
@pHqghUme : 555
pHqghUme
1
pHqghUme
1
pHqghUme
1
pHqghUme
1
pHqghUme
555
pHqghUme
1
pHqghUme
1
pHqghUme
1
pHqghUme
1
pHqghUme
1
pHqghUme
@pHqghUme : 555
pHqghUme
1
pHqghUme
1
pHqghUme
@pHqghUme : 555
pHqghUme
1
1
1
pHqghUme
@1 : 555
1
1
1
1