安装mytop 出现 Error in option spec: "long|!"
2014-02-10 15:52
288 查看
安装mytop 出现 Error in option spec: "long|!"
编辑 mytop vim /usr/bin/mytop
找到 "long|!" => \$config{long_nums},
修改成 "long|long_nums|l!" => \$config{long_nums},
问题解决
使用的时候出现
Use of uninitialized value in substitution (s///) at /usr/bin/mytop line 958.
可以这么解决
#vim /usr/bin/mytop
{
$thread->{Host} =~ s/:\d+$//;
my $host = gethostbyaddr(inet_aton($thread->{Host}), AF_INET);
$host =~ s/^([^.]+).*/$1/; (删除或者注释)
$thread->{Host} = $host;(删除或者注释)
if ($host) (添加)
{ (添加)
$host =~ s/^([^.]+).*/$1/;(添加)
$thread->{Host} = $host;(添加)
}
}
}
本文出自 “某人说我技术宅” 博客,请务必保留此出处http://1992mrwang.blog.51cto.com/3265935/1196309
编辑 mytop vim /usr/bin/mytop
找到 "long|!" => \$config{long_nums},
修改成 "long|long_nums|l!" => \$config{long_nums},
问题解决
使用的时候出现
Use of uninitialized value in substitution (s///) at /usr/bin/mytop line 958.
可以这么解决
#vim /usr/bin/mytop
{
$thread->{Host} =~ s/:\d+$//;
my $host = gethostbyaddr(inet_aton($thread->{Host}), AF_INET);
$host =~ s/^([^.]+).*/$1/; (删除或者注释)
$thread->{Host} = $host;(删除或者注释)
if ($host) (添加)
{ (添加)
$host =~ s/^([^.]+).*/$1/;(添加)
$thread->{Host} = $host;(添加)
}
}
}
本文出自 “某人说我技术宅” 博客,请务必保留此出处http://1992mrwang.blog.51cto.com/3265935/1196309
相关文章推荐
- 安装mytop 出现 Error in option spec: "long|!"
- Stanford coreNLP 出现 in thread "main" java.lang.OutOfMemoryError: Java heap space
- java编译中出现了Exception in thread “main" java.lang.UnsupportedClassVersionError
- MyEclipse启动Tomcat出现Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
- xtrabackup 1.6.3安装出现cc1: error: unrecognized command line option "-fdiagnostics-show-option"
- Keil编译出现“Error: L6406W: No space in execution regions with .ANY selector match Section"的解决办法
- scala出现异常:Exception in thread "main" java.lang.StackOverflowError
- 出现"VMProcessPageFault Error: Page fault occurred while in power handler"原因及解决方法
- 运行的程序时,出现内存不足时的解决方式Exception in thread "main" java.lang.OutOfMemoryError: Java heap space(转)
- VS2008(VC6)出现如下链接错误的解决方法uafxcwd.lib(afxmem.obj) : error LNK2005: "void * __cdecl operator new(unsign
- SCCM 2012 SP1 安装出现"Client push fails with Authenticode Signature error"解决方法
- ubuntu启动spyder出现“An error occurred while starting the kernel"
- 用vs2017编写opencv程序,出现下列错误OpenCV Error: Assertion failed (size.width>0 && size.height>0) in cv::imshow
- java运行出现:Exception in thread "main" java.lang.NOClassDefFoundError:Hello(wrong name:hello/Hello)
- cc1: error: unrecognized command line option "-m64"报错,需要加入ARCH=arm
- Smarty error: unable to read resource: "result.html" in Smarty.class.php on line 1093
- StarUML启动时候出现"System Error. Code:1722. RPC服务器不可用."错误的解
- Error:"failed to open the hard disk" in virtualbox
- Qt+Boost编译出现Parse error at "BOOST_JOIN"
- Eclipse 报 “Exception in thread "main" java.lang.OutOfMemoryError: Java heap space ”错误的解决办法以及文本文件换行