Linux 基本操作

系统根据PID终止进程 kill -9 <PID> 例如 kill -9 26105根据文件内的PID终止进程 kill -9 `cat 包含PID的文件` 创建文件夹链接 ln -s /mnt/source/ target修改时区 dpkg-reconfigure tzdata文...

screen 安装与使用

常用screen参数:# screen -S docker-d 新建一个名叫docker-d的session,并马上进入 # screen -dmS docker-d 新建一个名叫docker-d的session,但暂不进入,可用于系统启动脚本里 # screen -ls 列出当前所有sess...

redis

apt-get install redis-server 运行redisredis-server 后台运行redis简单后台运行redis-server & 查看redis是否启动ps -ef | grep redis

virtualenv 安装与使用

安装PIP安装(推荐)pip install virtualenv 包管理器安装sudo apt-get install python-virtualenv 基本使用cd my_project_dir virtualenv venv  #venv为虚拟环境目录名,目录名自定义 切换解释器vir...

更新 Python pip 镜像源为阿里云

Linux创建或打开文件在文件 ~/.pip/pip.conf,写入如下内容:[global] index-url = https://mirrors.aliyun.com/pypi/simple/ [install] trusted-host = mirrors.aliyun.comWin...