<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>未分类 on Lishengxie</title>
		<link>https://lishengxie.github.io/categories/%E6%9C%AA%E5%88%86%E7%B1%BB/</link>
		<description>Recent content in 未分类 on Lishengxie</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Sat, 23 Dec 2023 23:17:56 +0800</lastBuildDate>
		
			<atom:link href="https://lishengxie.github.io/categories/%E6%9C%AA%E5%88%86%E7%B1%BB/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Transfer Server</title>
				<link>https://lishengxie.github.io/post/transfer-server/</link>
				<pubDate>Sat, 23 Dec 2023 23:17:56 +0800</pubDate>
				<guid>https://lishengxie.github.io/post/transfer-server/</guid>
				<description>&lt;h2 id=&#34;站点迁移&#34;&gt;站点迁移&lt;/h2&gt;&#xA;&lt;p&gt;之前使用的是云服务器是腾讯与的2核4G服务器，但是由于最开始购买时只买了一年，续费时价格太贵，因此转到阿里云，可以有四年每年99元的2核2G服务器可以白嫖~&lt;/p&gt;&#xA;&lt;p&gt;迁移过程大概分为两步：站点数据迁移和站点备案迁移&lt;/p&gt;&#xA;&lt;h3 id=&#34;数据迁移&#34;&gt;数据迁移&lt;/h3&gt;&#xA;&lt;h4 id=&#34;博客迁移wordpress-typecho&#34;&gt;博客迁移wordpress-&amp;gt;typecho&lt;/h4&gt;&#xA;&lt;p&gt;原来的博客使用wordpress框架，但是wordpress框架功能齐全、有些臃肿，因此这里换成了更精简的typecho框架。&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;typecho安装&#xA;参考了知乎博客&lt;a href=&#34;https://zhuanlan.zhihu.com/p/34211709&#34;&gt;https://zhuanlan.zhihu.com/p/34211709&lt;/a&gt;；&lt;/li&gt;&#xA;&lt;li&gt;导出wordpress数据库并在新服务器中导入&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;mysql导入导出命令参考: &lt;a href=&#34;https://www.runoob.com/w3cnote/linux-mysql-import-export-data.html&#34;&gt;https://www.runoob.com/w3cnote/linux-mysql-import-export-data.html&lt;/a&gt;；&lt;/li&gt;&#xA;&lt;li&gt;先将原服务器上的wordpress数据库导出为*.sql文件，再导入到新服务器中；&lt;/li&gt;&#xA;&lt;li&gt;这一步是为了方便下一步转换到typecho，因为这样可以直接访问本地数据库。&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;数据迁移到typecho&#xA;基于typecho插件：&lt;a href=&#34;https://docs.typecho.org/plugins/wordpress-to-typecho&#34;&gt;https://docs.typecho.org/plugins/wordpress-to-typecho&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;还原wordpress中的图片附件到typecho中&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;将WordPress的wp-content/uploads目录下的附件全部移动到Typecho的usr/uploads目录下，保持目录结构不变。&lt;/li&gt;&#xA;&lt;li&gt;在mysql typecho对应数据库中执行以下代码以完成图片路径的替换：&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt; update typecho_contents set text=replace(text,&amp;#39;wp-content/uploads&amp;#39;,&amp;#39;usr/uploads&amp;#39;)&#xA; update typecho_contents set text=replace(text,&amp;#39;wordpree站点url&amp;#39;,&amp;#39;typecho站点url&amp;#39;)&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;5&#34;&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;typecho使用数学公式&#xA;使用插件：&lt;a href=&#34;https://github.com/yuzhongzhibi/typecho_mathjax_plugin&#34;&gt;https://github.com/yuzhongzhibi/typecho_mathjax_plugin&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;typecho主题页面更改&#xA;参考链接：&lt;a href=&#34;https://www.skyqian.com/archives/typecho-pages.html&#34;&gt;https://www.skyqian.com/archives/typecho-pages.html&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h4 id=&#34;docker容器迁移&#34;&gt;docker容器迁移&lt;/h4&gt;&#xA;&lt;p&gt;做法是现在新服务器上安装docker，然后迁移旧服务器上的docker挂载文件夹到新服务器相同位置，最后在新服务器启动容器。参考链接：&lt;a href=&#34;https://zhuanlan.zhihu.com/p/643367054&#34;&gt;https://zhuanlan.zhihu.com/p/643367054&lt;/a&gt;&#xA;这里我主要使用了两个容器用于存储电子书和笔记&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Talebook：&lt;a href=&#34;https://github.com/talebook/talebook&#34;&gt;https://github.com/talebook/talebook&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;leanote: &lt;a href=&#34;https://www.bilibili.com/read/cv23693842/&#34;&gt;https://www.bilibili.com/read/cv23693842/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;站点备案迁移&#34;&gt;站点备案迁移&lt;/h3&gt;&#xA;&lt;p&gt;为了方便使用，计划将域名和服务器都转移到阿里云。因为服务器需要在所在服务商处备案，因此还需要再阿里云备案，主要参考了这篇博客：&lt;a href=&#34;https://www.zuozuovera.com/posts/1644/&#34;&gt;https://www.zuozuovera.com/posts/1644/&lt;/a&gt;。&lt;/p&gt;</description>
			</item>
			<item>
				<title>建站过程</title>
				<link>https://lishengxie.github.io/post/website-build/</link>
				<pubDate>Sun, 30 Apr 2023 08:55:32 +0800</pubDate>
				<guid>https://lishengxie.github.io/post/website-build/</guid>
				<description>&lt;h3 id=&#34;购买腾讯云服务器&#34;&gt;购买腾讯云服务器&lt;/h3&gt;&#xA;&lt;p&gt;购买腾讯云清量2核4G服务器&lt;a href=&#34;https://cloud.tencent.com/act/cps/redirect?redirect=3274&amp;amp;cps_key=822991d9cc1eddb9c45d4c9d51e8cc65&amp;amp;from=console&#34;&gt;直达链接&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h3 id=&#34;启动镜像&#34;&gt;启动镜像&lt;/h3&gt;&#xA;&lt;p&gt;这里选择了Ubuntu server 20.04，启动镜像后设置远程登录(远程登录-&amp;gt;密码/密钥登录-&amp;gt;重置密码)，需要注意这里的用户需要系统中已经存在，默认已经存在一个用户ubuntu，这里我们直接使用该用户。&#xA;配置好后可以本地使用Mobaxterm登录云服务器，将云服务器当作Ubuntu虚拟机使用。&lt;/p&gt;&#xA;&lt;h3 id=&#34;搭建wordpress网站&#34;&gt;搭建wordpress网站&lt;/h3&gt;&#xA;&lt;p&gt;网站搭建参考了博客&lt;a href=&#34;https://blog.csdn.net/weixin_36338224/article/details/109105047&#34;&gt;https://blog.csdn.net/weixin_36338224/article/details/109105047&lt;/a&gt;。&lt;/p&gt;&#xA;&lt;h3 id=&#34;主题替换&#34;&gt;主题替换&lt;/h3&gt;&#xA;&lt;p&gt;下载&lt;a href=&#34;https://github.com/seatonjiang/kratos/releases/tag/v4.1.5&#34;&gt;Kratos主题&lt;/a&gt;并上传替换原有主题，在外观里设置。&lt;/p&gt;&#xA;&lt;h3 id=&#34;markdownlatex公式使用&#34;&gt;Markdown&amp;amp;Latex公式使用&lt;/h3&gt;&#xA;&lt;p&gt;安装WP Editor.md插件，在wordpress中使用markdown编辑。&#xA;安装Simple MathJax插件，实现对latex公示的支持，需要注意的是这里行内公式使用&lt;code&gt;\\(...\\)&lt;/code&gt;，例如\(\sigma\)，行间公式使用&lt;code&gt;$$..$$&lt;/code&gt;，例如&lt;/p&gt;&#xA;&lt;div class=&#34;katex-display&#34;&gt;\sigma&lt;/div&gt;&lt;p&gt;。&lt;/p&gt;</description>
			</item>
			<item>
				<title>Windows常见问题记录</title>
				<link>https://lishengxie.github.io/post/windows-problem/</link>
				<pubDate>Sun, 30 Apr 2023 08:54:20 +0800</pubDate>
				<guid>https://lishengxie.github.io/post/windows-problem/</guid>
				<description>&lt;h2 id=&#34;触摸板无法使用&#34;&gt;触摸板无法使用&lt;/h2&gt;&#xA;&lt;p&gt;在设置中选择“插入鼠标后禁用触摸板”选项后，将鼠标拔出后触摸板仍然无法使用，出现这种问题后&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;关闭“插入鼠标后禁用触摸板”选项，插入鼠标观察触摸板是否可以使用，如果不能使用那么触摸板可能损坏，需要进一步排查；如果可以使用，那么可能是因为设备管理器中出现了虚拟鼠标；&lt;/li&gt;&#xA;&lt;li&gt;如果是第一步的第二种情况，需要在设备管理器中禁用第一个鼠标选项，如下图所示：&#xA;&lt;a href=&#34;https://lishengxie.github.io/uploads/2023/04/wp_editor_md_ce91cd92c52b92c2f1e07f960f460289.jpg&#34;&gt;&lt;img src=&#34;https://lishengxie.github.io/uploads/2023/04/wp_editor_md_ce91cd92c52b92c2f1e07f960f460289.jpg&#34; alt=&#34;&#34;&gt;&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
			</item>
	</channel>
</rss>
