iiint opened a new issue #1209:
URL: https://github.com/apache/incubator-iotdb/issues/1209


   
将Windows下生成的incubator-iotdb\distribution\target\apache-iotdb-0.10.0-SNAPSHOT-incubating-bin拷贝到Linux,使用chmod命令给予start-server.sh权限后,运行start-server.sh可能会报出bad
 interpreter或者$'\r'这两类错误,如下图:
   
![image](https://user-images.githubusercontent.com/41571850/82002009-344a5d80-968f-11ea-901d-409dd5f2645c.png)
   
   解决方案:
   一、更改sbin目录下start-server.sh的脚本格式为Unix
   1. vim apache-iotdb-0.10.0-SNAPSHOT-incubating-bin/sbin/start-server.sh
   2. 在命令模式下,使用命令 :set ff=unix
   3. :wq!保存文件,退出vim
   
   二、同样的操作,更改conf目录下iotdb-env.sh的脚本格式为Unix
   
   再次运行start-server.sh可以发现能够正常运行
   参考:[解决方案参考网页](https://blog.csdn.net/xuforeverlove/article/details/85334726)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to