2013年7月24日
摘要: 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 阅读(899) 评论(0) 推荐(0) 编辑
摘要: 从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 阅读(851) 评论(0) 推荐(0) 编辑
摘要: sudo systemctl stop iptablessudo sytemctl stop firewalld 阅读全文
posted @ 2013-07-24 10:28 andy071001 阅读(278) 评论(0) 推荐(0) 编辑