2017年12月

NTLDR全称是是一个隐藏的,只读的系统文件,位置在系统盘的根目录,用来装载操作系统。是winnt/win2000/WinXP的引导文件,而出现ntldr is missing通常是由于用户使用如硬盘安装器一类的软件来安装win7系统,引导没有设置导致。Ntldr is missing解决方法:使用Windows 7安装光盘自带的Bootsect.exe重新改写引导记录。首先将“Windows 7安装光盘\boot\bootsect.exe”复制到启动优盘,进入WinPE系统后在命令提示符下输入“K:\bootsect /nt60 c: /mbr”(K:为启动U盘的盘符,添加参数“/nt

- 阅读剩余部分 -

1.更改时间为上海时区:rm -rf /etc/localtimeln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime2.NTP同步时间:apt-get updateapt-get install ntp ntpdate -y3.更新时间:service ntpd stop #停止ntp服务ntpdate us.pool.ntp.org #同步ntp时间service ntpd start

- 阅读剩余部分 -

从archlinux官网下载,可选国内源。分区及格式化分区、挂载分区fdisk /dev/sda mkfs.ext4 /dev/sda1 mount /dev/sda1 /mnt更改pacman的源为国内nano /etc/pacman.d/mirrorlist最小安装系统pacstrap -i /mnt base生成fstabgenfstab -U -p /mnt >> /mnt/etc/fstab进入基本系统并进行基本设置arch-chroot /mnt /bin/bash alias ls='ls --color' #让ls显示颜色,方便查看 nano /etc/locale.gen #开启en_US.UTF-8和zh_CN.UTF-8 locale-gen ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime echo 主机名 > /etc/hostname nano /etc/hosts mkinitcpio -p linux passwdpacman -S grub-bios grub-install /dev/sda grub-mkconfig -o /boot/grub/grub.cfg重启exit umo

- 阅读剩余部分 -

直接输命令sudo apt-get -y install netcat curl https://get.acme.sh | sh source ~/.bashrc # 确保80端口没有被占用 sudo apt-get install socat sudo ~/.acme.sh/acme.sh --issue -d 你的域名 --standalone -k ec-256 # 在/etc/v2ray/目录生成证书 sudo ~/.acme.sh/acme.sh --installcert -d 你的域名 --fullchainpath /etc/v2ray/v2ray.crt --keypath /etc/v2ray/v2ray

- 阅读剩余部分 -

创建 1GB 的虚拟内存dd if=/dev/zero of=/swap bs=1M count=1024修改权限chmod 0600 /swap将 swap 这个文件格式化为 swapmkswap /swap开启 swap 分区swapon /swap 如需关闭,则执行:swapoff /home/swap加入 fstab 以实现开机加载echo '/swap swap swap default 0 0' &g

- 阅读剩余部分 -