随笔分类 -  Linux

摘要:LINUX下CVS服务器安装及权限简单配置 阅读全文

posted @ 2012-12-06 00:53 木月天空 阅读(1184) 评论(0) 推荐(0)

摘要:【代码】#include <stdio.h>int main(){ char szTmp[100]; sprintf(szTmp, "%-03s|%03s|%03d", "1", "1", 1); printf("[%s]\n", szTmp); return (0);}【Linux环境】>uname -aLinux version 2.6.9-42.EL (bhcompile@hs20-bc1-1.build.redhat.com) (gcc version 3.4.6 20060404 (Re 阅读全文

posted @ 2011-12-10 00:40 木月天空 阅读(461) 评论(0) 推荐(0)

摘要:【OS】RHEL_AS4【问题】root用户执行useradd命令报错,如下:[root@localhost etc]# useradd efps4useradd: cannot rewrite shadow password file[root@localhost etc]# userdel efps4 userdel: error deleting shadow password entry【解决】执行restorecon,如下:[root@localhost etc]# restorecon /etc/shadow 阅读全文

posted @ 2010-04-07 22:44 木月天空 阅读(433) 评论(0) 推荐(0)

摘要:一、首先检查Linux里是否安装了telnet。用root用户查[root@localhost root]#rpm -q telnet二、如何没有安装就在RPM软件包里找到安装即可三、开启服务方法一:使用ntsysv,在出现的窗口之中,将telnet前面*加上,然后按下 OK 。方法二:编辑 /etc/xinetd.d/telnet[root@localhost root]# vi /etc/xinetd.d/telnet找到 disable = yes 将 yes 改成 no 。然后重启服务即可service xinetd restart方法三:如果在图形界面下,进入system setti 阅读全文

posted @ 2007-04-17 12:15 木月天空 阅读(213) 评论(0) 推荐(0)