ubuntu 18.04 常用软件

  1. git

  • 配置

git config --global user.name "john.liu"
git config --global user.email "[email protected]"
git config --global core.editor vim
  • 忽略ssl

git config --global http.sslVerify fals
  • 上传空目录

find . -type d -empty -exec touch {}/.gitkeep \;
  1. mysql

  • 解决只有root账号可以登录

update mysql.user set authentication_string=password('123456') where user='root'and Host = 'localhost';
update user set plugin='mysql_native_password' where user='root';
flush privileges;
  • 备份

mysqldump -h 127.0.0.1 -u jdCartest_user -t -p jdCarsMalldbtest > /home/ycadmin/jd.sql

-t 只导出数据,不创建表结构

  1. python3

  • 编译安装

sudo apt-get install zlib1g-dev libssl-dev libsqlite3-dev libmysqlclient-dev
sudo mkdir python3.6
tar zxvf Python-3.6.5.tgz
./configure --prefix=/usr/local/python3.6/
make
sudo make install
sudo ln -s /usr/local/python3.6/bin/python3.6 /usr/bin/python3.6
sudo ln -s /usr/local/python3.6/bin/pip3.6 /usr/bin/pip3.6

--prefix 指定安装目录

猜你喜欢

转载自www.cnblogs.com/liuweiqc/p/10985072.html