07 2013 档案
【转】fedora和ubuntu开启ssh
摘要:fedora和ubuntu开启ssh1小时前 ubuntu开启SSH服务 SSH分客户端openssh-client和openssh-server如果你只是想登陆别的机器的SSH只需要安装openssh-client(ubuntu有默认安装,如果没有则sudo apt-get install openssh-client),如果要使本机开放SSH服务就需要安装openssh-serversudo apt-get install openssh-server然后确认sshserver是否启动了:ps -e |grep ssh如果看到sshd那说明ssh-server已经启动了。如果没有则可以.. 阅读全文
posted @ 2013-07-24 11:39 andy071001 阅读(1194) 评论(0) 推荐(0)
使用nginx转发不了静态文件
摘要:从django runserver的请求来看,都收不到静态文件请求,查看firefox的web console请求,发现都是403然后发现nginx不在当前用户组,并且当前用户的项目的读写权限是700.。修改权限:chomod 744 /home/xxx/workspace/project把nginx加到当前用户组:usermod -G myroot nginx 阅读全文
posted @ 2013-07-24 10:30 andy071001 阅读(879) 评论(0) 推荐(0)
fedora关闭防火墙
摘要:sudo systemctl stop iptablessudo sytemctl stop firewalld 阅读全文
posted @ 2013-07-24 10:28 andy071001 阅读(306) 评论(0) 推荐(0)
ubuntu修改ip地址命令
摘要:sudo ifconfig eth1 xxx.xxx.xxx.xxx 阅读全文
posted @ 2013-07-08 09:34 andy071001 阅读(179) 评论(0) 推荐(0)
virtualenv 配置python3环境
摘要:virtualenv -p /usr/bin/python3 py3envsource py3env/bin/activatepip install package-name 阅读全文
posted @ 2013-07-04 13:52 andy071001 阅读(151) 评论(0) 推荐(0)
SSH login without password
摘要:SSH login without passwordYour aimYou want to use Linux and OpenSSH to automize your tasks. Therefore you need an automatic login from host A / user a to Host B / user b. You don't want to enter any passwords, because you want to call ssh from a within a shell script.How to do itFirst log in on 阅读全文
posted @ 2013-07-03 13:40 andy071001 阅读(326) 评论(0) 推荐(0)
ubuntu harddisk uuid already exists
摘要:就是virtualbox下先用u盘启动的虚拟机,把U盘的vhdk文件拷贝到本机,然后再启动,就有问题,提示什么uuid already exist找了半天,网上基本都是说windows下如何用的。。。终于在某篇博客的最后一条评论里找到了ubuntu的命令。。。vboxmanage internalcommands sethduuid pathto.vdi这个pathto.vdi就是你的新镜像的路径,搞定 阅读全文
posted @ 2013-07-03 12:02 andy071001 阅读(288) 评论(0) 推荐(0)
查询公司外网ip方法
摘要:curl -s "http://checkip.dyndns.org/"|cut -f 6 -d" "|cut -f 1 -d"<"可能要先下载curl 阅读全文
posted @ 2013-07-01 14:59 andy071001 阅读(385) 评论(0) 推荐(0)