• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

Sun Solaris 问题总结

mysql 搞代码 4年前 (2022-01-09) 15次浏览 已收录 0个评论

1) Q:现在遇到这样一个问题,telnet一台SUN机时报下面的错误: No utmpx 本文来源gao.dai.ma.com搞@代*码(网$entry. You must exec quot;loginquot; fro

  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 就是从光盘启动后进入系统


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Sun Solaris 问题总结
喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址