忆志-中心服务器 WEB UI

windows 系统中注销


wsl --unregister Ubuntu-22.04-es-center-server-web-ui

windows 系统中导入


rd /s/q d:\wsl\Ubuntu-22.04-es-center-server-web-ui

mkdir d:\wsl\Ubuntu-22.04-es-center-server-web-ui

wsl --import Ubuntu-22.04-es-center-server-web-ui d:\wsl\Ubuntu-22.04-es-center-server-web-ui 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 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 subversion

# dpkg-reconfigure locales

mkdir -p /gt/workspace

cd /gt/workspace

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-web-ui.git

cd /gt/workspace/es-center-server-web-ui

pnpm i

pnpm -F @es-center-server-web-ui/index prod-build

du -sh /gt/workspace/es-center-server-web-ui/index/dist/prod/index/*

# apt install -y pkg-config libssl-dev openssl-devel

# apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev

# apt install -y lld llvm nsis

# rustup target add x86_64-pc-windows-msvc

# cargo install xwin

Last Updated: