分类: VPS
用incus 开 NAT 小鸡
开小鸡条件
1、公网ipv4 vps一台做母鸡。注意:不能是NAT(必须)
2、ipv6(非必须):如果你的母鸡支持ipv6 /64,可以给小小鸡直接分配ipv6
如果没有,可以注……
服务器没有IPv6 却解析IPv6地址 导致无法访问网站
编辑
nano /etc/network/interfaces
粘贴
iface eth0 inet6 static
disable-ipv6 yes
重启后生效
临时:
sudo sysctl -w net.ipv6.conf.all.disab……
VPS常用命令及脚本
自动同步校正系统时间
apt install systemd-timesyncd
timedatectl set-ntp true
设置时区为北京时间
timedatectl set-timezone Asia/Shanghai
&n……
Debain使用ntp同步时间
apt-get update
apt-get install ntpdate
ntpdate ntp1.aliyun.com
Debian11 服务器禁用IPv6
1、编辑/etc/sysctl.conf文件
sudo nano /etc/sysctl.conf
在文件末尾添加:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1……
宝塔稳定版怎么切换正式版
curl https://download.bt.cn/install/update_panel.sh|bash
宝塔面板自动挂载硬盘
Centos/Fedora系统:
yum install wget -y && wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh
Ubuntu……
linux挂载新硬盘
查看硬盘的使用情况,也就是哪些硬盘没有挂载
fdisk -l
查看挂载情况
fdisk -l
首先,使用命名 mkfs.ext4 硬盘名称 进行格式化,本例的命令如下……
zerotier搭建moon
安装
curl -s https://install.zerotier.com | sudo bash
进入zerotier目录
cd /var/lib/zerotier-one
zerotier-idtool initmoon identity.public >>moon.json……