博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
HPUX系统启动后主机名为unknown的解决办法
阅读量:5101 次
发布时间:2019-06-13

本文共 3495 字,大约阅读时间需要 11 分钟。

HPUX系统启动完成后,主机名为unknown,查看/etc/rc.log出现如下报错:
 
unknown:[/]grep -i error /etc/rc.log
/sbin/rc1.d/S320hostname[36]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S020evm[67]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S130pfilboot[5]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S131ipfboot[5]: Syntax error at line 2 : `)' is not expected.
ERROR: /opt/sec_mgmt/bastille/swLoopbackConfig.sh not present. Exiting.
evmpost: Error: Connection error
/sbin/rc2.d/S356dhcpv6.server[32]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S360dhcpv6.client[40]: Syntax error at line 2 : `)' is not expected.
ERROR:   Internal error.  Security check failed unexpectedly.  This
         error occurred in function "idam_LocateLocalFile", source file
ERROR:   "unknown:/":  You do not have permission for this operation.
ERROR:   Internal error.  Security check failed unexpectedly.  This
         error occurred in function "idam_LocateLocalFile", source file
ERROR:   "unknown:/":  You do not have permission for this operation.
/sbin/rc2.d/S490mrouted[39]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S500inetd[38]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S510gated[38]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S523pppoe[39]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S530rwhod[39]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S538rtradvd[48]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S540sendmail[115]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S550ddfa[40]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S560SnmpMaster[167]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S565OspfMib[74]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S565SnmpHpunix[203]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S565SnmpIpv6[197]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S565SnmpMib2[207]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S565SnmpNaa[191]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S565SnmpTrpDst[208]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S590Rpcd[30]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S660xntpd[37]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S700acct[39]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S738oserrlog[19]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S742diagnostic[28]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S800spa[39]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S900drd[21]: Syntax error at line 2 : `)' is not expected.
/sbin/rc2.d/S980TftpdStandAlone[78]: Syntax error at line 2 : `)' is not expected.
/sbin/rc3.d/S823hpws22_apache[44]: Syntax error at line 2 : `)' is not expected.
/sbin/rc3.d/S823hpws22_tomcat[46]: Syntax error at line 2 : `)' is not expected.
ERROR: Could not start Tomcat.
/sbin/rc3.d/S823hpws22_webmin[45]: Syntax error at line 2 : `)' is not expected.
ERROR: Could not start Webmin
/sbin/rc3.d/S823hpws22_webproxy[44]: Syntax error at line 2 : `)' is not expected.
/sbin/rc3.d/S823hpws_xmltools[42]: Syntax error at line 2 : `)' is not expected.
/sbin/rc3.d/S828kwdbd[164]: Syntax error at line 2 : `)' is not expected.
 
问题原因:
/etc/rc.config.d/目录先出现了不能识别的启动控制文件或启动控制文件中有错误的符号或参数。
 
解决方案:
使用sh -x /etc/rc.config确认是哪一个配置文件有错误,然后把错误文件修复或移除错误文件即可;如果是配置文件参数错误,需要逐个文件去排查。

转载于:https://www.cnblogs.com/keane/p/6118771.html

你可能感兴趣的文章
python爬虫基础12-selenium大全6/8-等待
查看>>
磁盘分区笔记
查看>>
数学基础-线性代数
查看>>
Jersey客户端API调用REST风格的Web服务
查看>>
Windows10更新提示语言不同不能保留程序和设置
查看>>
PHP动态生成select标签
查看>>
Laravel 日志权限问题
查看>>
Laravel Carbon获取 某个时间后N个月的时间
查看>>
Laravel 指定日志生成目录
查看>>
layui 表格点击图片放大
查看>>
there is no permission with id `12`
查看>>
Laravel使用EasyWechat 进行微信支付
查看>>
我的大二学年总结
查看>>
oracle 基本语法,正则表达式应用
查看>>
Socket通信原理
查看>>
http请求被挂起 cancled 原因
查看>>
刷题——移动盒子及其相关题目
查看>>
docker容器
查看>>
kafka的docker文件
查看>>
java的线程池的基础类
查看>>