解决 centos下执行sh文件报错“/bin/bash^M: 坏的解释器:没有那个文件或目录” 问题

今天部署一个springboot项目到centos系统下,自己在Windows写的启动脚本,执行过程中出现/bin/bash^M: 坏的解释器:没有那个文件或目录错误,无法正常运行。 按照以往的经验分析是因为在Windows环境下的换行符在Linux下是无法被识别的,出现一个^M符号。然后vi一下这...

【linux】CentOS编译程序报错 修复 ./Modules/_ssl.c:64:25: 致命错误:openssl/rsa.h:没有那个文件或目录

如果你在编译时遇到这个错误,这可能是下面的原因:你尝试编译的程序使用OpenSSL,但是需要和OpenSSL链接的文件(库和头文件)在你Linux平台上缺少。 所以在CentOS下, 退到根路径,【需要在root用户下】然后输入: yum install openssl-devel 安装完成后,重新...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

{"cardStyle":"productCardStyle","productCode":"aliyun","productCardInfo":{"productTitle":"CentOS到Alinux操作系统迁移","productDescription":"2020年12月08日,CentOS官方宣布了停止维护CentOS Linux的计划,操作系统迁移解决方案为企业提供ECS实例运行的操作系统EOL(生命周期结束)后的替换或升级服务。","productContentLink":"https://www.aliyun.com/solution/tech-solution/centos_alinux","isDisplayProductIcon":true,"productButton1":{"productButtonText":"方案详情","productButtonLink":"https://www.aliyun.com/solution/tech-solution/centos_alinux"},"productButton2":{"productButtonText":"方案部署","productButtonLink":"https://help.aliyun.com/document_detail/2510051.html"},"productButton3":{"productButtonText":" 查看更多技术解决方案","productButtonLink":"https://www.aliyun.com/solution/tech-solution/"},"productPromotionInfoBlock":[{"$id":"0","productPromotionGroupingTitle":"解决方案推荐","productPromotionInfoFirstText":"MSE实现全链路灰度","productPromotionInfoFirstLink":"https://www.aliyun.com/solution/tech-solution/iflgbomse","productPromotionInfoSecondText":"云上经典架构","productPromotionInfoSecondLink":"https://www.aliyun.com/solution/tech-solution/habwoc"}]},"activityCardInfo":{"activityTitle":"","activityDescription":"","cardContentBackgroundMode":"LightMode","activityContentBackgroundImageLink":"","activityCardBottomInfoSelect":"activityPromotionInfoBlock"}}

社区圈子

开发与运维
开发与运维
集结各类场景实战经验,助你开发运维畅行无忧
6420+人已加入
加入
相关电子书
更多
CentOS Nginx PHP JAVA 多语言镜像使用手
CentOS Nginx PHP JAVA多语言镜像使用手册
立即下载 立即下载