书到用时方恨少

错误整理

上一篇 / 下一篇  2007-11-08 18:42:41 / 个人分类:综合

1:linux 下配置FTP 的错误列表
550 Failed to change directory

出错的时候会指到某个用户的文件目录中,指出的是没有权限访问,用
ls -l 查看
由/etc/fstab 中配置mount分区ownership都是root
权限是770, 所以 当前lftp登陆的 user没有权限访问;

解决方案1:
修改 /etc/fstab, 将umask=007改为umask=000
然后注销重新登陆/重启机子
这样以来,虽然dirA的ownership任然是root
但权限是777,也就任何登陆用户都有可读可写可运行的权限.

解决方案2;
不在/etc/fstab中 mount分区;
而把mount语句写到当前user的~/.bashrc里;
这样也达到了每次开机自动mount分区,而且挂( mount)上去分区的
ownship就是当前user了!!!

2:CVS 重启及同步问题
以超级用户的身份登录到cvs服务器上

>/etc/init.d/xinted restart #重启
> telnet localhost 2401   #查看CVS服务器是否正常工作,如果什么也不显示,只有光标闪烁,那么服务器是正常工作的.反之,则会看到报错信息.

> /etc/init.d/cvslockd start

下列报错信息的起因是:cvs所在机器的网线没有插好.

Problems reported while synchronizing CVS Workspace. 0 of 1 resources were synchronized.
An error occurred synchronizing /PT-CMS: Socket Exception: Software caused connection abort: socket write error
Socket Exception: Software caused connection abort: socket write error


Problems reported while synchronizing CVS Workspace. 0 of 1 resources were synchronized.
An error occurred synchronizing /PT-CMS: I/O has been interrupted.
I/O has been interrupted.
The most likely cause of the interrupt is either an intermittent network failure or a communications timeout.
The CVS communications timeout can be adjusted in the Team/CVS preferences.
Another possible cause is the improper configuration of the "ext" connection method.
The "ext" connection method can be configured on the Team/CVS/EXT Connection Method preference page


3:ssh linux 中文乱码问题

现象:起中文的文件名是乱码,通过程序往一个文件中写入中文是乱码。
修改/etc/sysconfig/i18n文件,将其改成以下内容:

LANG="zh_CN.GB18030"
LANGUAGE="zh_CN.GB18030:zh_CN.GB2312:zh_CN"
SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"





TAG: 综合

 

评分:0

我来说两句

Open Toolbar