随笔分类 -  shell

摘要:echo "export SOLR_HOME="${setup}${plugNme}/server/solr >> /etc/profile 给环境变量配置的solr根目录位置应该是solr安装根目录里的 /server/solr 千万不要设为 solr安装根目录 ,会导致 关闭指令失效 注意,不要 阅读全文
posted @ 2022-10-21 11:08 岑惜 阅读(62) 评论(0) 推荐(0) 编辑
摘要: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 读取 阅读全文
posted @ 2022-09-12 12:41 岑惜 阅读(539) 评论(0) 推荐(0) 编辑
摘要:1.参数 wlanip = ""报错 command not found 2.解决 把 = 号的前后空格去掉即可, 赋值不允许有空格的 wlanip="" 阅读全文
posted @ 2022-09-12 12:28 岑惜 阅读(98) 评论(0) 推荐(0) 编辑
摘要:执行 chmod 777 ./myshell.sh 阅读全文
posted @ 2022-01-09 11:14 岑惜 阅读(234) 评论(0) 推荐(0) 编辑
摘要:win10 拷贝shell 脚本到Linux 执行报错 -bash: ./myshell.sh: /bin/bash^M: bad interpreter: No such file or directory win10编辑器容易添加一些看不见的转义内容进去 怎么办??? 很简单 执行指令 【文件换 阅读全文
posted @ 2022-01-09 11:14 岑惜 阅读(45) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示