随笔分类 - Linux
Ubuntu
摘要:在CentOS 6.X 上面安装 Python 2.7.X CentOS 6.X 自带的python版本是 2.6 , 由于工作需要,很多时候需要2.7版本。所以需要进行版本升级。由于一些系统工具和服务是对 Python 有依赖的,所以升级 Python 版本需要注意。 升级步骤 如何欢乐的,没有痛
阅读全文
摘要:【本来这不是个事,可是在阿里云部署的时候,这个网速真是让我无语,本来10分钟就能解决的事,得俩三个小时,太没效率了!】 原文转自 http://www.cnblogs.com/xwdreamer/p/3875857.html 平时apt-get install安装软件时,下载的deb文件都会存放在/
阅读全文
摘要:1. apt-get install vsftpd2. vim /etc/vsftp.conf#禁止匿名访问anonymous_enable=NO#接受本地用户local_enable=YES#允许上传write_enable=YES#用户只能访问限制的目录chroot_local_user=YES...
阅读全文
摘要:How To Add Swap on Ubuntu 12.04Aug 17, 2012Linux BasicsUbuntuAbout Linux SwappingLinux RAM is composed of chunks of memory called pages. To free up pa...
阅读全文
摘要:grep - n ' a[[:space:]]b'就能搜索到 'a b'类似的字符了如果要搜索带单引号的 用双引号括起来如果要搜索带双引号的 用单引号括起来
阅读全文
摘要:1.手贱地修改了当前用户的权限组,导致sudo命令无法使用,且root用户的密码尚未修改,登陆不了root用户.2.切换到recoverymode ,使用root用户登陆3.执行mount -o rw,remount /命令可以修改文件系统为读写4.然后使用passwd 命令修改root用户密码,重...
阅读全文
摘要:sudo grep -n 'xxxx' -r ./*
阅读全文
摘要:Open/etc/ssh/sshd_configand check ifPermitRootLoginis set toyes. If not, then set it to yes and restartsshwithsudo service ssh restart
阅读全文
摘要:sudo find . -name '*.dump' -mtime +10 -exec rm "{}" \;
阅读全文
摘要:编辑home目录下的.bashrc文件alias xjerp="~/odoo/xj/openerp-server -r openerp --addons-path='~/odoo/xj/openerp/addons'"重启shell即可.
阅读全文
摘要:1. 将改动提交 git add .2.push 到github git push origin master
阅读全文
摘要:查找命令:ps -A -o stat,pid,ppid,cmd | grep -e '^[Zz]'找到之后 kill掉,然后用top命令查看是否kill成功,如果失败,kill 父进程。
阅读全文