nagios服务端监控客户端内存时发现监控不上 在客户端直接执行脚本,报错如下: # /usr/local/nagios/libexec/check_memory.pl -w 6% -c 3% -bash: /usr/local/nagios/libexec/check_memory.pl: /usr/bin/perl^M: bad interpreter: No such file or directory 解决: 应该是windows编码的文件在Linux无法识别的问题 在linux环境里面…
redis官网 https://redis.io/download 安装 $ wget http://download.redis.io/releases/redis-5.0.4.tar.gz $ tar xzf redis-5.0.4.tar.gz $ cd redis-5.0.4 $ make 启动 src/redis-server make时候可能报错 xx command not found CentOS7默认没有安装gcc,这会导致我们无法make成功.使用yum安装: yum -y…
转载自:https://blog.csdn.net/enweitech/article/details/80677374 解决方法: vim /etc/ssh/sshd_config shift+g 添加 KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1 ;重启 service sshd re…
错误情况如下图所示: 如果你也显示这个错误但是其实在该路径上有上有这个文件,那么显然你遇到和我一样的情况,即你是Windows下创建的文件,但是试图在Lunix系统去打开它.这是在Windows下调用CentOS上文件显示的结果,如果你还有疑虑可以尝试在CentOS直接打开该文件,那么你将会遇到下面的错误: -bash: hooks/post-receive: /bin/bash^M: bad interpreter: No such file or directory 因为各个操作系统的文件对…
1.用FXP登录Linux报错: [info] subsystem request for sftp failed, subsystem not found.[右] [execute] /usr/lib/openssh/sftp-server[右] [execute] /usr/lib/sftp-server[右] [execute] /usr/local/lib/sftp-server[右] [execute] /usr/libexec/sftp-server[右] [execute] sft…
阿里云一台Ecs重启后启动不了,出现报错 dependency failed for /mnt , dependency failed for local file systems ,  报错的原因  无法挂载数据盘到 /mnt 目录,  /etc/fstab配置错误导致 阿里云工单回复 这个查看是进入了修复模式,原因是/etc/fstab配置错误导致,这个界面您可以直接输入root密码登录,然后执行blkid并查看/etc/fstab看下配置做下调整,然后reboot重启测试,可以参考 htt…
内容提要:wince6.0编译报错:"error C2220: warning treated as error - no 'object' file generated" 原因是:warning treated as error 意思是将警告当成错误,这是编译选项的问题,将警告级别设置得高导致的错误. 解决的办法是:将警告级别设置为低.这个我想大家都知道,但要如何设置呢?我找了一段时间,也没有很好的解决办法,网上也有很多人遇到这个问题,但真正解决的却没有,我是没有找到,或者就是有人解…
mysql启动不成功,报错 mysql InnoDB: Error: could not open single-table tablespace file innodb_force_recovery 参考https://blog.csdn.net/qq_16752369/article/details/78070515https://www.cnblogs.com/glon/p/6728380.html mysql启动成功后: ps -aux|grep mysqlroot 14939 0.6…
http://blog.csdn.net/lzq123_1/article/details/51354179 注意:要将/usr/bin/mysql_install_db替换成 /usr/bin/mysql_install_db  --datadir=usr/local/mysql/data/var  ,不然会报错"Starting MySQL...The server quit without updating PID file”…
salt '*' state.highstate 报错找不到文件,环境如下No Top file or master_tops data matches found. file_roots:    base:      - /srv/salt #改成 /srv/salt/ #state_top: top.sls    [root@st152 /srv/salt]# ls  top.sls  top.sls2  web [root@st152 /srv/salt]# pwd  /srv/salt…