CentOS下JDK8+Python3+PostgreSQL9安装

一个喜欢的配色 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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值