排序
ubuntu高版本情况下,开机自启动开启
/lib/systemd/system/rc-local.service 最底部添加 [Install] WantedBy=multi-user.target Alias=rc-local.service 然后自己创建rc.local文件,权限为777 vim /etc/rc.local 然后启动服务 syste...
bbr安装脚本
wget --no-check-certificate -O /opt/bbr.sh https://github.com/teddysun/across/raw/master/bbr.sh;chmod 755 /opt/bbr.sh;/opt/bbr.sh 重启后查看是否生效(包含bbr字符串) sysctl net.ipv...
orangepi扩展SD卡分区大小
烧写OrangePi镜像后,发现可用空间太少怎么办? 于是查看磁盘状况发现有空闲空间没有被根分区使用,部分系统可以执行sudo fs_resize来进行扩容,Armbian会自动扩容(发现没有扩容的可以重启再看...
Ubuntu更换阿里云的源
先备份 cd /etc/apt cp sources.list sources.list.bak 看下源里面是不是us.archive.ubuntu.com的,如果是就直接替换。一般默认安装的都是这个。 sed -i 's/us.archive.ubuntu.com/mirrors.aliy...
centos 7 网络同步时间
yum -y install ntp ntpdate ntpdate ntp1.aliyun.com // 开机启动 vim /etc/rc.d/rc.local /usr/sbin/ntpdate ntp1.aliyun.com;/sbin/hwclock -w 定时任务 crontab -e 0 */1 * * * ntpdate ntp...
静态路由跨网段访问代码
route add 192.168.123.0 mask 255.255.255.0 192.168.1.253 -p route delete 192.168.123.0 mask 255.255.255.0 192.168.1.253 route add 10.0.0.0(要访问的IP段) mask 255.0.0.0 192.168.0....
腾讯云-救援模式直接dd换系统-centos76-命令日志
[root@VM-20-9-centos ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/live-rw 7.8G 4.2G 3.6G 54% / devtmpfs 966M 0 966M 0% /dev tmpfs 1000M 4.0K 1000M 1% /dev/shm t...
Ubuntu 全局http模式 代理加速
sudo apt-get install proxychains vim /etc/proxychains.conf 修改最后一行,并保存 socks5 127.0.0.1 1080 或者http 127.0.0.1 1080 proxychains curl xxxx proxychains wget xxxx proxychain...
Linux下使用dd命令生成指定大小的文件
生成1个1G大小的文件,文件填充全为0 dd if=/dev/zero of=test bs=1M count=1000 生成1个1G大小的文件,文件填充内容为随机数据 dd if=/dev/urandom of=test bs=1M count=1000
