摘要: httpd: apr_sockaddr_info_get() failed for hoteelhttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName我在service httpd restart的时候提示上述信息的。虽然启动成功了,但是也是很郁闷的。这是因为我在配置DNS的时候hostname hoteel造成的。重新hostname localhost就可以了。我在网上找来一些有关这方面的信息,就顺便贴在这里了。1在启动 阅读全文
posted @ 2011-08-18 17:43 google4y 阅读(505) 评论(0) 推荐(0) 编辑
摘要: http://www.justwinit.cn/post/4461/su 和 sudo 的区别:1.共同点:都是root用户的权限;2.不同点:su仅仅取得root权限,工作环境不变,还是在切换之前用户的工作环境;sudo是完全取得root的权限和root的工作环境。su - root 和 su root(su)有什么区别?su - root:表示人以root身份登录just like login as root, then the shell is login shell,which mean it will expericene a login process,usually .bash_ 阅读全文
posted @ 2011-08-18 17:18 google4y 阅读(8167) 评论(0) 推荐(0) 编辑
摘要: xxx is not in the sudoers file解决方法用sudo时提示"xxx is not in the sudoers file. This incident will be reported.其中XXX是你的用户名,也就是你的用户名没有权限使用sudo,我们只要修改一下/etc/sudoers文件就行了。下面是修改方法:1)进入超级用户模式。也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式。(当然,你也可以直接用root用) 2)添加文件的写权限。也就是输入命令"chmod u+w /etc/sudo 阅读全文
posted @ 2011-08-18 16:43 google4y 阅读(190) 评论(0) 推荐(0) 编辑
不在家,就在公司,不在公司,就在去公司的路上,無家無根,如風如萍,只有漂