排序
L19※ubuntu设置开机不启动图形界面
1> 开机不启动图形界面 sudo systemctl set-default multi-user.target sudo shutdown -r now 2> 从控制台进入图形界面 sudo systemctl start gdm3.service 3> 恢复开机启动图形界面 s...
L21※linux添加中文字体
1> centos 修改中文字体 ① 查看所有字体 yum install fontconfig fc-list ② 查看中文字体 fc-list :lang=zh ③ 找到win10中需要的字体, 上传字体到/root ④ 把字体复制到/usr/share/fonts...
L30※甲骨文云开启root登录
echo root:密码 | sudo chpasswd root sudo sed -i 's/^#?PermitRootLogin./PermitRootLogin yes/g' /etc/ssh/sshd_config sudo sed -i 's/^#?PasswordAuthentication./PasswordAuthentication ...
L15※vps开放端口
1> 安装iptables sudo apt-get install iptables sudo yum install iptables 2> ubuntu或者debian ① 新建规则文件 vim /etc/iptables/rules.v4 -A INPUT -p tcp -m state --state NEW -m tc...
L14※ubuntu 修改ip地址
1> ubuntu 18.04 ① 修改配置文件/etc/network/interfaces vim /etc/network/interfaces auto lo iface lo inet loopback auto eth0 #设置自动启动eth0接口,eth0根据ifconfig中的网卡名进行...
L33※镜像源
1> python 国内镜像源 ① 手动配置 vim /root/.pip/pip.conf [global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple [install] trusted-host = https://pypi.tuna.tsinghu...
L18※ubuntu挂载新硬盘
1> 查找新添加的盘符 # root用户 fdisk -l # 查看新硬盘 blkid # 定位或打印块设备的属性,查看硬盘uuid 2> 格式化新硬盘文件系统: mkfs -t ext4 /dev/sda 3> 挂载硬盘...
L39※禁止Debian 11自动休眠
1> 查看休眠状态 systemctl status sleep.target 2> 设置禁止休眠 systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
L51※好玩儿的docker项目
0> 私有镜像 docker login --username=condor369 registry.cn-hangzhou.aliyuncs.com docker tag [ImageId] registry.cn-hangzhou.aliyuncs.com/slx-docker/[命名空间]:[镜像版...
L17※ubuntu开启root登录
1> 设置 root 账户密码 sudo passwd root 2> 修改 .profile vim /root/.profile # mesg n || true tty -s && mesg n || true 3> 修改 gdm-autologin 和 gdm-password cd /etc/...