免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3226 | 回复: 5
打印 上一主题 下一主题

问个简单的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-13 10:19 |只看该作者 |倒序浏览
请问各位大大。在Solaris下什么命令相当于linux下的\r\n/etc/init.d/network restart\r\n还有就是我刚刚安装完Solaris。上网正常。就是没有域名解析。\r\n我已经在/etc下添加了resolv.conf.并且reboot了。为什么还是不能解析啊?

论坛徽章:
0
2 [报告]
发表于 2006-08-13 12:14 |只看该作者
难道在Solaris 中没/etc/init.d/network restart 吗?\r\n你可以ifconfig eth0 down\r\nifconfig eth0 up\r\n在/etc/resolv.conf 中加入\r\nnameservers  61.139.2.69(比如)

论坛徽章:
0
3 [报告]
发表于 2006-08-13 13:56 |只看该作者
在Solaris里运行出现如下提示\r\nbash-2.05# /etc/init.d/network restart\r\nSetting netmask of eri0 to 255.255.255.0\r\nconfiguring IPv4 interfaces: eri0.\r\n/etc/init.d/network: shcat: not found\r\nHostname: unknown

论坛徽章:
0
4 [报告]
发表于 2006-08-13 14:12 |只看该作者
  1. \r\n#vim /etc/nsswitch.conf \r\n
复制代码
\r\n\r\n\r\nhosts:      files dns

论坛徽章:
0
5 [报告]
发表于 2006-08-13 15:03 |只看该作者
原帖由 old-cow 于 2006-8-13 14:12 发表\r\n
  1. \r\n#vim /etc/nsswitch.conf \r\n
复制代码
\r\n\r\n\r\nhosts:      files dns
\r\n能说的具体点么\r\n在/etc/nsswitch.conf 里添加\r\nhosts:      files dns ???\r\n网络重启呢?

论坛徽章:
0
6 [报告]
发表于 2006-08-14 08:43 |只看该作者
不是啊。在Solaris里怎样重启网络。\r\n还有就是\r\n我在/etc/resolv.conf 中加入\r\nnameservers  192.168.1.1\r\n#vim /etc/nsswitch.conf \r\nhosts:      files dns \r\n用nslookup的时候还是显示\r\n*** Can\'t find server name for address 192.168.1.1: Non-existent host/domain\r\n*** Default servers are not available
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP