0%

重装系统后环境重建总结

说明

  • 重装系统后,电脑上搭建的很多东西用不了,简单记录
  • 本次系统win10

heox

  • 本地搭建了hexo的博客,其中主要用的是node,只要把node的安装目录设置到环境变量中即可
  • 然后再博客的目录,执行hexo cl && hexo g && hexo s执行成功
  • 发现使用hexo d 提交到服务器后,内容没有变化,需要如下设置
1
2
3
git config --global user.email '284772894@qq.com'
# 然后提交到服务器
hexo cl && hexo g && hexo d

mysql

  • 环境变量设置好了mysql的根目录后,直接开启服务提示无效
1
2
3
C:\Users\Administrator>net start mysqld
服务名无效。

  • 分别执行如下操作
1
2
3
4
5
6
7
8
9
# 将mysql服务注册到win服务中
C:\Users\Administrator>mysqld --initialize
# 安装服务
C:\Users\Administrator>mysqld --install
Service successfully installed.
# 启动服务
C:\Users\Administrator>net start mysql
MySQL 服务正在启动 .
MySQL 服务已经启动成功。
  • 最终用heidisql连接数据库成功,库里面的数据正常

python

  • 直接在环境变量中设置python的根目录和Script目录
  • 设置pip下载为国内镜像
1
2
3
4
5
# 临时使用
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple xxx
# 永久使用,清华镜像
C:\Users\Administrator>pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
Writing to C:\Users\Administrator\AppData\Roaming\pip\pip.ini
  • 测试
1
2
3
C:\Users\Administrator>pip install pip -U
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Requirement already satisfied: pip in d:\app\python37\lib\site-packages (23.1.2)

vue

  • 需要安装node.js,安装hexo 时已经安装了node.js
  • 打开本地的Microsoft VS Code IDE 然后打开本地项目
  • 打开终端执行安装依赖
1
npm install
  • 运行代码
1
npm run serve

typora

  • 下载并解压typora1.2.4-Windows(破解包).7z

  • 安装后,不打开typora

  • 使用app.asar 文件替换typora_home/resources 中文件

  • 打开typora输入任意邮箱,序列号输入:E8Q9Y5-KXMTL5-7578SL-4S5XKS

go

  • 设置go_home\bin到环境变量中
  • 启动本地的Microsoft VS Code IDE,打开扩展安装中文
  • 打开go项目文件夹,终端中输入:go run main.go