Hello World✌
修改root密码
1、sudo -i
2、vi /root/.ssh/authorized_keys
3、把ssh-rsa之前的内容都删除掉.
4、vi /etc/ssh/sshd_config
5、找到PermitRootLogin, 把前面的#去掉
更改为PermitRootLogin yes
6、找到PasswordAuthentication
更改为PasswordAuthentication yes
退出并保存编辑 :wq
7、passwd 更改密码
8、reboot 重启vps
Ubuntu系统下开放所有端口
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
查看防火墙状态 sudo systemctl status ufw
Debian,Ubuntu
查看系统启动时间
systemd-analyze
一键纯净更新
apt update -y && apt full-upgrade -y && apt autoremove -y && apt autoclean -y
安装常用工具
apt install -y curl wget sudo
一键清理垃圾
查看Debian版本
cat /etc/debian_version
cat /etc/lsb-release
Docker ARM VPS
--pull always \
-v ~/data:/data \
-p 5555:5555 \
--name redroid11 \
redroid/redroid:11.0.0-latest \
androidboot.redroid_width=720 \
androidboot.redroid_height=1280 \
androidboot.redroid_dpi=480 \
androidboot.redroid_gpu_mode=guest
CentOS
查看系统启动时间
systemd-analyze
一键纯净更新
yum update -y && yum upgrade -y && yum autoremove -y && yum clean all
一键清理垃圾
sudo yum autoremove
sudo yum clean all
sudo journalctl --rotate
sudo journalctl --vacuum-time=1s
sudo journalctl --vacuum-size=50M
sudo yum remove $(rpm -qa kernel | grep -v $(uname -r))
查看CentOS版本
cat /etc/centos-release
JavaScript
回复删除