Linux basic configuration Compile and install python3 in the Linux environment 1. How to install software under Linux - the preferred yum tool is convenient, solve the dependencies between software by yourself, and automatically download and install 1. Configure the yum source (a software warehouse with a bunch of rpm software packages) You can choose Alibaba Cloud source, Tsinghua yum source to configure the first warehouse, which contains a large number of commonly used system software wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo You also need to configure a second warehouse to carry a lot of third-party software (nginx, redis, mongodb, mairadb, etc.) wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo 2. You need to understand the yum warehouse directory cd /etc/yum.repos.d/ #The repo files on the first level of this directory will be identified and asked about the yum software warehouse 3. Clear the yum cache, clear the centos official yum software cache yum clean all 4. Generate a new Alibaba Cloud yum cache yum makecache -wget command in a resource URL -apt-get yum under ubuntu -Using yum repositories, you can not only use third-party yum repositories, but also specify official yum sources (such as the official yum source of mariadb database, the latest software package) -rpm manual installation, which requires handling dependencies -freely select versions, and can extend third-party functions, called source code compilation and installation View dependent modules pip3 freeze > requirements.txt #This requirements.txt file is a module dependency file that Python programmers know Step 1. Start the mariadb database Configure yum source 1.yum Configure the yum source yum install mariadb-server mariadb -y 2. How to start the software installed through yum systemctl start mariadb # systemctl start/stop/status/restart mariadb 3. Log in to the database cmd login Export the Windows database and import it to the Linux machine cmd login export command mysqldump -uroot -p se_crm > se_crm.sql #Specify the database to be exported to the se_crm.sql data file and transferred to Linux for import. Simply use the lrzsz tool to transfer or download the xftp tool to import data. Mariadb installation yum install mariadb-server Method 1: 1. Create a se_crm database create database se_crm; #Command to import datamysql -uroot -p se_crm < /opt/se_crm.sql #Specify the se_crm database and import a sql file Method 2: After logging in to the database, use the command to import data 1. Create a se_crm database create database se_crm; 2. Switch database use se_crm; 3. Read the sql file and write the data set mareiadb> source /opt/se_crm.sql; Step 2: Prepare Python 3 environment and virtual environment Compile and install python3 to solve environment variables How to compile and install python3 under centos7
Download virtualenvwrapper tool virtualenvwrapper, an upgraded virtual environment tool
Use the mkvirtualenv command to create a new virtual environment for starting crm mkvirtualenv s23_crm Copy the crm code to the linux machine rz # Drag the crm project compression package to linux, # Unzip Solve the dependent environment required for crm operation, django and other modules, and pymysql
The above are all the relevant knowledge points introduced this time. Thank you for your learning and support for 123WORDPRESS.COM. You may also be interested in:
|
<<: Vue's global watermark implementation example
>>: A collection of possible problems when migrating sqlite3 to mysql
In the previous article, we wrote about how to de...
Find the problem When retrieving the top SQL stat...
<style type="text/css"> Copy code ...
Table of contents Preface use Component Writing D...
Table of contents Overview Property settings Proc...
Table of contents Prerequisites DNS domain name r...
Today, we use uniapp to integrate Echarts to disp...
1. Modify the Linux server docker configuration f...
Some time ago, during development, I encountered ...
Environment: MacOS_Cetalina_10.15.1, Mysql8.0.18,...
Table of contents 1. Project folder structure 1. ...
(1) Reduce HTTP requests. (Merge resource files a...
MySQL database reports ERROR 1045 (28000): Access...
Table of contents 1. Merge arrays 2. Merge arrays...
Many web pages have small triangles in their navi...