wshon 发布的文章
wshonscreen 安装与使用
常用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...
更新 Debian apt-get 镜像源为阿里云
debian 6.x (squeeze)编辑/etc/apt/sources.list文件(需要使用sudo), 在文件最前面添加以下条目(操作前请做好相应备份)deb http://mirrors.aliyun.com/debian/ squeeze main non-free contri...
最新回复