排序
L07※Linux安装chrome
1> Centos安装chrome ① 安装方法1 a. 修改yum源 cd /etc/yum.repos.d/ vi google-chrome.repo [google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/sta...
L39※禁止Debian 11自动休眠
1> 查看休眠状态 systemctl status sleep.target 2> 设置禁止休眠 systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
L29※ubuntu搭建NTP Server
1> 寻找NTP SERVER http://www.pool.ntp.org是NTP的官方网站,这里可以查询最近的NTP Server。 ntp1.aliyun.com ntp.tencent.com ntp.ntsc.ac.cn # 中国NTPserver server 0.cn.pool.ntp.org s...
L37※Dockerfile
docker build -t docker_name . 1> ubuntu FROM ubuntu:20.04 # 更换镜像源 RUN sed -i 's@http://.*archive.ubuntu.com@http://mirrors.tuna.tsinghua.edu.cn@g' /etc/apt/sources.list RUN...
L31※nginx反向代理为Notion加速
1> 用oneinstack一键安装nginx wget -c http://mirrors.linuxeye.com/oneinstack-full.tar.gz && tar xzf oneinstack-full.tar.gz && ./oneinstack/install.sh --nginx_opti...
L19※ubuntu设置开机不启动图形界面
1> 开机不启动图形界面 sudo systemctl set-default multi-user.target sudo shutdown -r now 2> 从控制台进入图形界面 sudo systemctl start gdm3.service 3> 恢复开机启动图形界面 s...
L34※ RockyLinux挂载未分配的硬盘空间
1> 应用场合 初始硬盘为:3.5G 扩容后硬盘:50G 将扩容的空间增加到文件系统/dev/mapper/rocky-root中 2> 确认硬盘空间 df -h # 查看文件系统的硬盘使用 fdisk -l # 查看硬盘数量和分区情况 par...
L18※ubuntu挂载新硬盘
1> 查找新添加的盘符 # root用户 fdisk -l # 查看新硬盘 blkid # 定位或打印块设备的属性,查看硬盘uuid 2> 格式化新硬盘文件系统: mkfs -t ext4 /dev/sda 3> 挂载硬盘...
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中的网卡名进行...
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/...