xx's blog

docker命令

1. docker信息docker info 2. docker, compose和machine版本信息docker --version docker verison docker-compose --version docker-machine --version 3. 列出本地镜像docker images 4. 列出所有正在运行的容器docker ps or docker container ls 5. 列出所有容器及显示容器大小docker ps -as or docker con
2020-05-11

docker的安装

1. linux下安装dockerfor centos: https://docs.docker.com/engine/install/centos/ 卸载旧版本docker: $ sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest
2020-05-11

解决macos下安装m2crypto报SWIG的错

1. 使用pipenv或pip在虚拟环境安装m2crypto报错使用pipenv或pip在虚拟环境安装m2crypto报错, 报错内容如下: (env)$ pipenv install m2crypto # 或: (env)$ pip install m2crypto Installing initially failed dependencies… [pipenv.exceptions.InstallError]: File "/usr/local/lib/python3.7/site-p
2020-03-06

mysql5.7.x编码设置为utf8mb4

1. 临时设置编码(重新进入mysql shell后失效)mysql> show variables like '%char%'; +--------------------------+-----------------------------------------------------------+ | Variable_name | Value | +--------------------------+-------------------------------------------
2020-02-12

mac os x从源码编译安装python3.8

1. 下载并解压python3.8源码包https://www.python.org/https://www.python.org/downloads/ 选择XZ compressed source tarball, 拷贝文件绝对路径链接, 用wget命令下载 wget -c https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tar.xz xz -d Python-3.8.0.tar.xz tar -xvf Python-3.8.0.tar 2. 安
2019-10-15

postgresql命令

1. postgresql常用命令进入数据库postgres: $ psql postgres psql (11.2) Type "help" for help. postgres=# 退出postgresql shell: postgres=# exit 创建用户olddriver: postgres=# create user olddriver with password '123456'; CREATE ROLE 删除用户oldriver, 并创建用户olddriver, 将数据库的拥有
2019-08-26

mac os x sublime text 3安装ctags插件实现代码跳转

ctags是一款实现代码跳转的插件,可以提高查看代码的效率. 1. st3安装ctags插件快捷键commands + shift + p 打开 Package Control: Instance Package, 搜索 ctags进行安装ctags插件 2. 安装ctags打开ctags网址下载ctags源码包: http://ctags.sourceforge.net/ 或wget命令下载: wget -c https://jaist.dl.sourceforge.net/project/ctags/c
2019-05-21

linux下安装postgresql

postgresql官方下载: https://www.postgresql.org/download/ 1. for ubuntuhttps://www.postgresql.org/download/linux/ubuntu/ 创建postgresql仓库文件/etc/apt/sources.list.d/pgdg.list, 以添加以下内容: for 18.04: deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main for 16
2019-02-26

程序猿(媛)养成记

行为习惯Behavior程序语言Programming Language开发工具dev tools技术栈Technology Stack架构Architecture编码规范code style运维部署DevOps安全Security密码学Cryptology统计学Statistics前端Frontend后端backend美工UI数据库database移动互联网Mobile Internet大数据与云BigData and Cloud开源opensource英文english打杂other
2019-01-11

linux下安装elasticsearch

1. 安装JDKjdk8下载地址: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html 安装依赖工具: for ubuntu: sudo apt-get install vim wget lsof curl git for centos: sudo yum install vim wget lsof curl git wget命令下载: wget -c --no-check-certifi
2018-12-24
12345