服务器 频道

solaris基础和常用知识FAQ中篇

  71 Q: 我们的技术支持人员遇到一个问题,向您请教:在安装时没有选择安装网络,
  现在需要安装网络,怎样增加一个interface。目前只有lo0,没有hme0。
  A: 在 /etc 下 touch 一个空文件 hostname.hme0, 用 boot -r 命令重起.
  
  72 Q: 在Sun Ultra 5工作站(安装SOLARIS 2.6),每次开机时,都出现以下问题:
  Restoring the system.Please Wait ... cpr_read_bitmap:Can''t
  cpr_alloc bitmap0
  Can''t read statefile bitmap,please reboot
  Program terminated
  {0} OK
  
  每次开机都需要boot才能进入。
  请问如何解决?
  A: 首先, 在 ok 状态下检查 boot-file 参数:
  printenv boot-file
  如果是 boot-file = -F cprboot 之类, 用如下命令:
  set-default boot-file
  再检查一下.应该是空才对.
  如果不是, 则需要设置:
  setenv boot-file -F ufsboot
  重新启动.
  
  73 Q: 经实验,两台Sun工作站之间通过网络发Syslog日志,也不支持汉字,该问题可
  能是syslogd的问题。
  A: 估计是由于syslogd在望上传输时丢掉了字节的最高位.
  
  74 Q: 如果需要ID:105181-15的patch,请问ID:105181-19可以代替吗?ID毫最好两位
  是不是patch的版本号,如果是版本号有没有前项兼容性?
  A: 可以, 后两位表示同一patch的版本号.
  
  75 Q: 以下代码在Forte C++下导致编译错误,请问如何解决?
  
  template<typename p1, typename p2>
  void testimpl(int i1, int i2, p1* n1 = 0, p2* n2 = 0)
  {
  p1* pReq = new p1;
  p2* pRsp = new p2;
  }
  void test()
  {
  int i = 0;
  int j = 0;
  testimpl<int, int>( i, j);
  }
  A: 请下载新的patch更新Forte C++
  
  76 Q: 请问:如何设置工作站的最大客户端数?现有一台测试用机,使用人较多,经
  常出现“无法得到pty”的提示。
  A: 在/etc/system ,可以用参数 maxusers 设置,最大2048,如果这里没有设置,默
  认为与系统内存容量相同(以M记,最大为1024),
  
  77 Q: I install visibroker into my solaris 2.7.
  When I execute a example program,it cannot execute and tell me:
  ld.so.1: Server: 致命的: liborb64r_so:打开失败:无此文件或目录
  被杀掉
  
  (Server is my program)
  Can you tell me how to settle it?
  
  A: you should set this envirnment variable: LD_LIBRARY_PATH
  
  78 Q: 贵处有无磁带机的使用手册或指导说明?
  A: answerbook 中系统管理员手册 I 有使用说明.
  answerbook 的文档不是html格式,需要一个服务器程序转换, 察看本机http进
  程看有没有下面这个:
  
  # ps -ef |grep http
  # /usr/lib/ab2/dweb/sunos5/bin/dwhttpd /usr/lib/ab2/dweb/data
  
  79 Q: 在 solaris 2.5.1 上 把 系统时间 改为 2004 年,无问题,然后把时间再改回
  来后,整个UNIX 死机,请SUN工程师答复. 具体操作为: 将操作系统时间设为
  2004年3月1日,然后再将操作系统时间改回当前的时间,则系统的cpu资源被两个
  进程dtwm,dtfile严重占用,X Window反应非常缓慢,在低配置的系统上导致系统
  不可操作.同时显示 "Warning:selected failed;error code 22.
  A: 在窗口环境下或多用户模式下来回切换时间,会导致不可预测的结果,所以,
  如果当真要执行此类操作,请在单用户模式下进行.
  
  80 Q: shell 文件中如何从文件中读参数?
  A: cat yourfile`
  
  81 Q: 如何分析网络负载,在SUN上面有没有相应的工具
  A: netstat -i
  
  82 Q: 请问目前SUN E250,E450,E3500支持的CPU主频和缓存分别是多少?您能将这
  些配置列表发给我吗?
  A: docs.sun.com 有 硬件的answerbook ,可以参考一下。
  现在支持的CPU到400M, 480M 产品已有.but still have not released
  
  83 Q: mt -f /dev/rmt/0 有个参数:retension中文为“拉紧”,在磁带操作中具体
  做什么?
  A: the man page of this command said it clearly:
  Rewind the cartridge tape completely, then wind it
  forward to the end of the reel and back to beginning-
  of-tape to smooth out tape tension.
  so ,it is not 拉紧, but 放松 instead.
  
  84 Q: 具体问题是:有一个进程不停的向该文件增加内容,同时另外一个进程建立了
  与该文件的管道,从该文件中读取一行记录进行处理。然后删除该行记录。因
  此需要保持该文件i-node不能改变,否则,向该文件写的进程就不能将信息写
  入该文件了。有没有解决方法,请指教。
  A: I don''t know if I have understood you :
  If you want save this file for later use, you should not remove its''
  content,if you don''t need these content, you don''t need this file as
  well, you can use pipe only, or other interprocess communication
  methods.
  
  85 Q: 我用dos2unix转换一文件,却不成功,提示信息如下:(我用PC机通过rexec远
  程登陆的)
  $dos2unix filename1 filename2
  could not open /dev/kbd to get keyboard type US keyboard assumed
  could not get keyboard tyep US keyboard assumed
  
  请问此问题是怎麽回事?如何解决?
  A: 权限问题, 检查一下 /dev/kbd 读写权限
  
0
相关文章