第二种方法(shc): 使用 shc 对 Linux shell 脚本加密. shc是一个专业的加密shell脚本的工具.它的作用是把shell脚本转换为一个可执行的二进制文件,这个办法很好的解决了脚本中含有IP、密码等不希望公开的问题. shc的下载地址: http://download.chinaunix.net/download/0010000/9479.shtml 安装: tar zxvf shc-3.8.tgz cd shc-3.8 make test make make test make strings make install 使用方法: shc -r -f script-name 运 行后会生成两个文件,scr