当前位置:网站首页>No such file or directory problem while executing shell
No such file or directory problem while executing shell
2022-04-23 04:41:00 【Z-hhhhh】
One 、 For newly uploaded on the server start.sh Script , It is easy to appear when starting ,-bash:./start.sh:/bin/sh^M: bad interpreter:No such file or directory
Because of the general situation sh The format of the script is incorrect , If this script has been modified locally ( Use txt、notepad++ Open modify ), The file format may be saved as... By default when saving : doc Format (windows System )、mac( Apple system ), After uploading to the system ,unix The system does not support doc(mac) Format , So you need to doc(mac) The format of the file is modified to unix The format is just .
The specific operation steps are as follows :
1、 Carry out orders vi start.sh
2、 perform :set ff ( Here is a look at .sh File format , If you see in the lower left corner fileformat=doc or fileformat=mac,fileformat=dos, Continue with the following steps , Personal feeling is not unix Change everything )
3、 Carry out orders :set ff=unix ( It is amended as follows unix Format )
4、 Carry out orders :wq ( Save it )
5、 After saving , This time can also vi start.sh go in :set ff Confirm whether the format has been modified .
版权声明
本文为[Z-hhhhh]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220559122241.html
边栏推荐
- Use recyclerview to realize left-right side-by-side classification selection
- PIP3 installation requests Library - the most complete pit sorting
- leetcode007--判断字符串中的括号是否匹配
- Flink's important basics
- Migrate from MySQL database to AWS dynamodb
- Unity RawImage背景无缝连接移动
- 从MySQL数据库迁移到AWS DynamoDB
- 阿里十年技术专家联合打造“最新”Jetpack Compose项目实战演练(附Demo)
- 基于英飞凌MCU GTM模块的无刷电机驱动方案开源啦
- 383. Ransom letter
猜你喜欢
那些年我面试过的Android开发岗总结(附面试题+答案解析)
IDE Idea 自动编译 与 On Upate Action 、 On Frame Deactivation 的配置
Programmers complain: I really can't live with a salary of 12000. Netizen: how can I say 3000
MYSQL去重方法汇总
Supplement: Annotation
test
Coinbase:关于跨链桥的基础知识、事实和统计数据
383. Ransom letter
Iron and intestinal flora
Recommended scheme of national manufactured electronic components for intelligent electronic scales
随机推荐
AWS EKS 部署要点以及控制台与eksctl创建的差异
Recursive call -- Enumeration of permutations
Effects of antibiotics on microbiome and human health
[pytoch foundation] torch Split() usage
QML进阶(五)-通过粒子模拟系统实现各种炫酷的特效
Unity3D 实用技巧 - 理论知识库(一)
Go反射—Go语言圣经学习笔记
Leetcode004 -- Roman numeral to integer
Use recyclerview to realize left-right side-by-side classification selection
阿里十年技术专家联合打造“最新”Jetpack Compose项目实战演练(附Demo)
2021数学建模国赛一等奖经验总结与分享
The 14th issue of HMS core discovery reviews the long article | enjoy the silky clip and release the creativity of the video
在AWS控制台创建VPC(无图版)
MYSQL50道基础练习题
QML advanced (IV) - drawing custom controls
229. Find mode II
io. Platform. packageRoot; // ignore: deprecated_ Member_ use
C language: Advanced pointer
记录一下盲注脚本
Leetcode002 -- inverts the numeric portion of a signed integer