Esper 发布的文章

原理:先把装Linux时可以引导的启动扇区备份成文件,再由bootmgr的扇区引导功能读取文件,实现启动扇区的“还原”。 备份文件大概用dd的原理就好吧

bcdedit /create /d "name-of-your-boot-entry" /application bootsector
bcdedit /set {id} device partition=your-partition:
bcdedit /set {id} path path-under-partition-given-last-command
bcdedit /displayorder {id} /addlast

其中id为第一条命令返回的带括号的标识符

样例如下:

bcdedit /create /d "CentOS" /application bootsector
bcdedit /set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} device partition=C:
bcdedit /set {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} path \\linux-boot.bin
bcdedit /displayorder {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} /addlast

四条命令的作用分别为: 1.创建Windows启动条目 2.设置启动磁盘分区 3.确定启动时读取的引导文件 4.使刚刚设置好的启动条目在bootmgr中显示

参考内容:https://wenku.baidu.com/view/6ddae0d026fff705cc170afc.html

博客搭建初期,尚未对外观样式等进行配置,这个笔记就先潦草写着吧

安装Typecho很简单,官网下载代码包-解压到服务器上自己设定的站点根目录-从网页访问并按提示进行配置,安装就完成了。
emmm,LNMP包的安装就省略吧

遇到的问题及解决方法:

1.安装配置时,配置数据库时:无法连接到数据库
    ->直接在数据库中创建typecho数据库后回去再配置一遍就好了

2.博客登陆后台时404     ->这个是由于使用了部分php特性(pathinfo)造成的,我在配置时引入的文件是enable-php.conf,要修复此问题,改为引用另一个文件enable-php-pathinfo.conf即可。