排序
L46※Linux安装nps服务
github: https://github.com/ehang-io/nps/ 1> 下载nps安装包 mkdir /usr/local/nps_0.26.10 && cd /usr/local/nps_0.26.10 wget https://mirrors.condor.vip/nps/v0.26.10/linux_am...
L23※vps编译 openwrt 系统固件
1> 注意 1. 不要用 root 用户进行编译2. 默认登陆IP 192.168.1.1 密码 password 2> 编译命令 ① 首先装好 Linux 系统,推荐 Debian 11 或 Ubuntu LTS ② 安装编译依赖 sudo apt update -y...
L27※debian系统更改为中文显示
1> 添加中文支持 ~# vim /etc/locale.gen zh_CN GB2312 zh_CN.GB18030 GB18030 zh_CN.GBK GBK zh_CN.UTF-8 UTF-8 ~# locale-gen 2> 更改设置 ~# vim /etc/default/locale LANG='zh_CN.UTF-8' LA...
L35※设置或删除swap虚拟内存
1> 创建swap文件 ① 创建 Swap 文件 #创建swap文件,分区大小为4G sudo dd if=/dev/zero of=/swapfile count=4096 bs=1M ② 激活 Swap 文件 sudo chmod 600 /swapfile sudo mkswap /swapfile ③...
L12※通过bind自建doh服务
1> 安装bind ① 安装软件 apt-get install bind9 bind9utils dnsutils ② 编辑主配置文件 # vi /etc/bind/named.conf.options options { directory '/var/cache/bind'; // If there is a fir...
L49※重置MariaDB或MySQL密码
1> 停止数据库服务器 sudo systemctl stop mysql sudo systemctl stop mariadb 2> 跳过数据库密码验证 sudo mysqld_safe --skip-grant-tables --skip-networking & mysql -uroot use ...
L24※Centos 升级gcc版本
1> 卸载原来的旧版本 ① 查看当前的版本号 rpm -q gcc ② 卸载掉旧版本 rpm -e [上一步查到的版本号] ③ 如果上一步报错 error: Failed dependencies: gcc = 4.8.5-44.el7 is needed by ...
L47※debian关闭ipv6服务
vim /etc/sysctl.conf net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 sysctl -p
L36※docker ubuntu 设置ssh开机启动
正常在 linux 操作系统内设置服务自启动的方法一般都是使用 systemctl,但是 Docker 容器没有 systemctl 权限,这里使用脚本设置开机启动 1> 编写启动脚本 vim /root/start_ssh.sh LOGTIME=$(da...
L13※centos 搭建ftp服务器
1> 安装vsftpd yum install -y vsftpd systemctl start vsftpd systemctl enable vsftpd 2> 为ftp创建用户 useradd ftpuser passwd ftpuser 3> 创建ftp文件目录 mkdir /home/ftpuser/d...