The error "badinterpreter: Nosuchfileordirectory" is reported in Linux. sh.

Source: Internet
Author: User
Linux execution. sh error: badinterpreter: Nosuchfileordirectory problem when you start tomcat on a Linux system, encounter the following error message: badinterpreter: Nosuchfileordirectory.30/bin/catalina...
Linux execution. sh: bad interpreter: No such file or directory: When you start tomcat on a Linux system, the following error message is displayed: bad interpreter: no such file or directory.30/bin/catalina. sh:/bin/sh analysis: the error is terminated. there is no such file or directory. Check whether the corresponding catalina is found in/home/jxv8bs/apache-tomcat-6.0.30/bin. sh file, then remember that I edited the file on FTP just now -- set the jre used by Tomcat. The possible cause is that the. sh script has been written in notepad files in windows and is encoded in different formats. Www.2cto.com for further verification: view the encoding format of the File: 1) use the vi tool: [root @ localhost bin] # vi catalina. sh 2) use the following command to view the file format: set ff or: set fileformat. in the last line, you can see the following information: fileformat = dos or fileformat = unix. what I show is: fileformat = dos, we can see that the file format has changed to the Windows encoding format, so it cannot be identified in Linux. Solution: Use the following command to modify the encoding format of the file: set ff = unix or: set fileformat = unix: wq (save disk to exit). then we can run it normally!
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.