忆志-中心服务器 APP 服务文档

windows 系统中注销


wsl --unregister Ubuntu-22.04-es-center-server-app-service-doc

windows 系统中导入


rd /s/q d:\wsl\Ubuntu-22.04-es-center-server-app-service-doc

mkdir d:\wsl\Ubuntu-22.04-es-center-server-app-service-doc

wsl --import Ubuntu-22.04-es-center-server-app-service-doc d:\wsl\Ubuntu-22.04-es-center-server-app-service-doc d:\history\9999-12\wsl\Ubuntu-22.04-after-upgrade.tar.gz --version 2

wsl 系统中环境初始化


mkdir -p /gt/apps/nvm

tar -zxf /mnt/d/history/9999-12/Downloads/nvm-0.39.3.tar.gz --strip-components 1 -C /gt/apps/nvm

cat >>~/.bashrc <<\EOF

# export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node
# export NVM_IOJS_ORG_MIRROR=http://npm.taobao.org/mirrors/iojs
export NVM_DIR="/gt/apps/nvm"

[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

EOF

source ~/.bashrc 

nvm install --lts

nvm use --lts

npm config set registry https://registry.npm.taobao.org

npm install -g npm@10.2.4

# npm config set registry https://registry.npm.taobao.org

npm install pnpm -g

mkdir -p /gt/stores/.pnpm-store

pnpm config set store-dir /gt/stores/.pnpm-store

# pnpm config set registry https://registry.npm.taobao.org/
apt update -y && apt upgrade -y

apt install -y git

mkdir -p /gt/workspace

cd /gt/workspace

# npx create-docusaurus@latest es-center-server-app-service-doc classic --typescript

# cd /gt/workspace/es-center-server-app-service-doc

# npx docusaurus startyhtyh

git config --global user.name "yht"
git config --global user.email p13381541@163.com

git clone http://es-git.good-tools.tech/es/es-center-server-app-service-doc.git
 
cd /gt/workspace/es-center-server-app-service-doc

pnpm i

pnpm -F @es-center-server-app-service-doc/index docs:build

pnpm -F @es-center-server-app-service-doc/index docs:dev


Last Updated: