Loading...
下载脚本:wget --no-check-certificate -qO InstallNET.sh 'https://raw.githubusercontent.com/leitbogioro/Tools/master/Linux_reinstall/InstallNET.sh' && chmod a+x InstallNET.sh 一键运行:bash InstallNET...
一键开启sshCentOS系列,通过NoVNC连接后执行以下命令yum -y install openssh-server && systemctl restart sshd Debian系列,通过NoVNC连接后执行以下命令cat >> /etc/ssh/sshd_config << EOF PasswordAuthentication yes Pe...
Debian7:cp -r /etc/apt/sources.list /etc/apt/sources.list.bak;echo "deb http://archive.debian.org/debian/ wheezy main contrib non-free" > /etc/apt/sources.list;cat /etc/apt/sources.lis...
备份现有源:sudo cp /etc/apt/sources.list /etc/apt/sources.list_bak 一般情况下,将 /etc/apt/sources.list 文件中 Debian 默认的源地址 http://deb.debian.org/ 替换为国内源即可#中国科技大学 sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' ...
这几天Gullo小鸡做活动,买了个1.69刀的NAT小鸡儿,OpenVZ架构,但没有swap,我们添加一个,即便用不上也好看呀vi /etc/profile.d/swap-plus.sh 按 i 编辑(添加512M swap为例)#!/bin/bash SWAP="${1:-512}" NEW="$[SWAP*1024]"; TEMP="${...