Set up an integrated development environment on a cloud server
This article was last updated on: July 24, 2024 am
Python optimizes the configuration
Install the relevant software:
1 | |
Install Python 3.6
1 | |
Install pip:
1 | |
pip conf:
in the file~/.pip/pip.confAdd or modify:
[global]
index-url = http://mirrors.tencentyun.com/pypi/simple
trusted-host = mirrors.tencentyun.com
Reference Articles:
Tencent Cloud Software Source accelerates package download and update
Install pipenv: (mainly using Python 3.6)
1 | |
edit~/.zshrc, add the following:
1 | |
Subsequent usepipenvTo manage files, there are the following points:
- When installing, according to the existing python of the OS, specify according to the existing python, such as:
pipenv install --python /usr/bin/python36 - Can be modified
PipfileThe following configurations speed up dependency downloads:
[[source]]
url = "http://mirrors.tencentyun.com/pypi/simple --trusted-host mirrors.tencentyun.com"
verify_ssl = false
Compile and install Python 3.7
You need to install yum first
libffi-devel
1 | |
Docker configuration
Installation
1 | |
Modify the repository source
Available for CentOS 7 releases.
Modify the Docker configuration file sudo vi /etc/sysconfig/dockerAs follows:
1 | |
Reference Articles:
Power on
1 | |
Use Tencent Cloud Container related services
-
console, enterContainer Service → Image repository → My mirror , enter the personal password of the image repository. (The account number is AppID)
-
(Optional): InAccess management → User groups → Current user group→ Association policy : QcloudCCRFullAccess (Full read and write permissions of the image repository)
-
Log on to the ECS with the following command:
1
sudo docker login --username=appid ccr.ccs.tencentyun.com -
Download the image:
1
sudo docker pull ccr.ccs.tencentyun.com/[namespace]/[ImageName]:[镜像版本号]