一个喜欢的配色 vi ~/.bash_profile
export PS1='\[\033[0;32m\]\A \[\033[0;31m\]\u\[\033[0;34m\]@\[\033[0;35m\]\h\[\033[0;34m\]:\[\033[00;36m\]\w\[\033[0;33m\] \$\[\033[0m\] '
alias ll='ls -lht --color=auto'
JDK8安装
https://blog.csdn.net/qq_25881261/article/details/79698252
Python3安装
pip:https://www.cnblogs.com/mangoVic/p/6428369.html
# 首先安装epel扩展源
yum -y install epel-release
# 更新完成之后,就可安装pip
yum -y install python-pip
ssl模块:https://blog.csdn.net/blueheart20/article/details/79123069
Python3:https://baijiahao.baidu.com/s?id=1575696320288078&wfr=spider&for=pc
wget -c https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tgz
tar -zxvf Python-3.6.8.tgz
mv Python-3.6.8 /usr/python
cd /usr/python/Python-3.6.8
./configure
make
make install
ln -s python3 /usr/local/bin/python3
注意:在./configure过程中,如果没有加上–with-ssl参数时,默认安装的软件涉及到ssl的功能不可用,刚好pip3过程需要ssl模块,而由于没有指定,所以该功能不可用。
可能出现错误,会需要安装zlib:
yum install -y zlib zlib-devel --setopt=protected_multilib=false
一个好东西,生成所有依赖清单requirements.txt,需要使用到的工具叫pipreqs
pip install pipreqs
# 装好之后cmd到项目路径下:
pipreqs ./
PostgreSQL9安装
https://www.cnblogs.com/littlehb/archive/2013/04/22/3035521.html
导出postgres数据库到my.sql(包括数据)
pg_dump -U postgres -f my.sql postgres
恢复my.sql数据到postgres数据库
psql -U postgres -f my.sql postgres