随笔分类 - shell
摘要:echo "export SOLR_HOME="${setup}${plugNme}/server/solr >> /etc/profile 给环境变量配置的solr根目录位置应该是solr安装根目录里的 /server/solr 千万不要设为 solr安装根目录 ,会导致 关闭指令失效 注意,不要
阅读全文
摘要:1.目标 向文本写数据,从文本读数据 2.解决 写入文件 #记录本地ip到txt echo `ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"` > ./wlanip.txt 读取
阅读全文
摘要:1.参数 wlanip = ""报错 command not found 2.解决 把 = 号的前后空格去掉即可, 赋值不允许有空格的 wlanip=""
阅读全文
摘要:执行 chmod 777 ./myshell.sh
阅读全文
摘要:win10 拷贝shell 脚本到Linux 执行报错 -bash: ./myshell.sh: /bin/bash^M: bad interpreter: No such file or directory win10编辑器容易添加一些看不见的转义内容进去 怎么办??? 很简单 执行指令 【文件换
阅读全文