Created
November 24, 2019 08:02
-
-
Save lazidoca/85dd7090aa687f5a60a2e03a35a1af81 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -i | |
curl https://pyenv.run | bash | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash | |
echo 'export PATH="/root/.pyenv/bin:$PATH"' >> .bashrc | |
echo 'eval "$(pyenv init -)"' >> .bashrc | |
echo 'eval "$(pyenv virtualenv-init -)"' >> .bashrc | |
sudo apt update | |
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \ | |
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ | |
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git | |
source ~/.bashrc | |
PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.7.4 | |
pyenv local 3.7.4 | |
pip install requests requests-html lxml aiobotocore pdf2image httpx pyarmor | |
apt-get install poppler-utils -y | |
nvm install --lts | |
nvm use --lts | |
npm install pm2@latest -g | |
# pm2 start upload4.py --max-memory-restart 13200M --no-daemon | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment