摘要: 一、touch /opt/bigdata/elk/auto_elasticsearch.sh並寫入: 1 #!/bin/bash 2 3 # 1.確認安裝目錄 4 5 confdir=$(cd `dirname $0` ;pwd) ## 安裝到elk目錄下,這種寫法可適用於任何路徑訪問! 6 ech 阅读全文
posted @ 2020-08-09 19:09 PEAR2020 阅读(100) 评论(0) 推荐(0)
摘要: hwy用戶在/root/shell目錄下:sh test.sh啓動時,需要該用戶在shell/有x權限 假設hwy用戶在/目錄下:sh /root/shell/test.sh,需要用戶在root有x權限 ==> 用戶需要對文件(絕對路徑or相對路徑)的父目錄有操作權限! 阅读全文
posted @ 2020-08-09 16:58 PEAR2020 阅读(110) 评论(0) 推荐(0)