摘要:
在windows下保存了一个脚本文件,用ssh上传到centos,添加权限执行nginx提示没有那个文件或目录。shell脚本放到/etc/init.d/目录下,再执行/etc/init.d/nginx,提示多了这句/bin/bash^M: bad interpreter。网上找了资料才知道如果这个 阅读全文
摘要:
在/etc/init.d/下添加了keepalived,但死活用不了, service keepalived start 就一直报 Failed to start keepalived.service: Unit keepalived.service not found. 原来Ubuntu下还得去让 阅读全文
摘要:
很奇怪为什么明明用sudo可以执行成功脚本,但脚本自己不能自动运行. 原来是如下sudoers里面的如下设置未被注释 ## Disable "ssh hostname sudo <cmd>", because it will show the password in clear.# You have 阅读全文