下载后可任意编辑SUN 服务器可能遇到的问题总结(一)1) Q:现在遇到这样一个问题,telnet 一台 SUN 机时报下面的错误: No utmpx entry. You must exec "login" from the lowest level "shell". 我做了下面的处理后: cd /var/adm mv utmpx utmpxbak touch utmpx telnet 恢复了正常,可在该机器的终端下执行 login 命令时,又报了上面相同的错误。而且重新启动机器以后,telnet 时还是报相同的错误! A:进入单用户模式,清空(不是删除)这两个文件 # cat /dev/null > /var/adm/wtmpx # cat /dev/null > /var/adm/utmpx 之后,重新启动系统 找了很多国外的论坛,都是这么说的: The problem comes if utmp or wtmp file becomes corrupted . You need to initialize these and reboot the system to correct the error. These files are log files and can be initialized without affecting the system, as long as you reboot the system after truncating the files. Perform these steps: 1. Bring the system into System Maintenance mode. 2. Make copies of the files /etc/utmp, /etc/utmpx, /etc/wtmp, and /etc/wtmpx before proceeding with the next step. 3. Delete the contents of these files by executing the following commands: # > /etc/utmp # > /etc/wtmp 下载后可任意编辑# > /etc/utmpx # > /etc/wtmpx 4. Shutdown the system: # shutdown -y -g0 Restart the system 2) Q:我用 setenv PATH=$PATH:/path/to/my/program 的方式来赋值,总显示语法或者修饰符有问题。 假如用 setenv PATH=/path/to/my/program 就可以成功赋值。 请教各位老手,假如我想在 CSehll 下实现 bash 里面 export PATH=$PATH:/path/to/my/program 的赋值,应该怎么写啊? 没用过 CShell,请各位多指点,谢谢。 A:CShell 别用等号 setenv PATH "$PATH":/path/to/my/program 3) Q:系统是 SUN 280R,我在#提示符下输入 init s 回车后屏幕闪了几下,然后就成了白屏,强行重启也没反应 A:关掉电源,从光盘启动,进去看看是怎么回事 boot cdrom –s 就是从光盘启动后进入系统 4) Q: 在 sunfree 的网站上,比如我想安装 libiconv-1.8 那...