Linux 第2页
L07※Linux安装chrome-霜林轩

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...
slzxf的头像-霜林轩slzxf4个月前
1151
L39※禁止Debian 11自动休眠-霜林轩

L39※禁止Debian 11自动休眠

1> 查看休眠状态 systemctl status sleep.target 2> 设置禁止休眠 systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
slzxf的头像-霜林轩slzxf2年前
1191
L29※ubuntu搭建NTP Server-霜林轩

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...
slzxf的头像-霜林轩slzxf3个月前
1051
L37※Dockerfile-霜林轩

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...
slzxf的头像-霜林轩slzxf4个月前
931
L31※nginx反向代理为Notion加速-霜林轩

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...
slzxf的头像-霜林轩slzxf2年前
1191
L19※ubuntu设置开机不启动图形界面-霜林轩

L19※ubuntu设置开机不启动图形界面

1> 开机不启动图形界面 sudo systemctl set-default multi-user.target sudo shutdown -r now 2> 从控制台进入图形界面 sudo systemctl start gdm3.service 3> 恢复开机启动图形界面 s...
slzxf的头像-霜林轩slzxf2年前
5661
L34※ RockyLinux挂载未分配的硬盘空间-霜林轩

L34※ RockyLinux挂载未分配的硬盘空间

1> 应用场合 初始硬盘为:3.5G 扩容后硬盘:50G 将扩容的空间增加到文件系统/dev/mapper/rocky-root中 2> 确认硬盘空间 df -h # 查看文件系统的硬盘使用 fdisk -l # 查看硬盘数量和分区情况 par...
slzxf的头像-霜林轩slzxf2年前
1851
L18※ubuntu挂载新硬盘-霜林轩

L18※ubuntu挂载新硬盘

1> 查找新添加的盘符 # root用户 fdisk -l # 查看新硬盘 blkid # 定位或打印块设备的属性,查看硬盘uuid 2> 格式化新硬盘文件系统: mkfs -t ext4 /dev/sda 3> 挂载硬盘...
slzxf的头像-霜林轩slzxf2年前
1271
L14※ubuntu 修改ip地址-霜林轩

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中的网卡名进行...
slzxf的头像-霜林轩slzxf2年前
1421
L17※ubuntu开启root登录-霜林轩

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/...
slzxf的头像-霜林轩slzxf2年前
941