💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
启动docker ``` [root@paas-crm-docker-014 ~]# docker run --name pre-test --rm 136.160.160.21:15000/crm_center-pre-rule-check-service:v09021917 standard_init_linux.go:190: exec user process caused "no such file or directory" ``` 这种报错是因为Windows上编辑过的文件,放到Linux服务器上导致的字符编码问题,此时用cat -v catalina.sh 查看文件,会多出`^M` ``` ^M <!-- Access log processes all example.^M Documentation at: /docs/config/valve.html^M Note: The pattern used is equivalent to using pattern="common" -->^M <!-- <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"^M prefix="localhost_access_log" suffix=".txt"^M pattern="%h %l %u %t &quot;%r&quot; %s %b" /> -->^M <!--for csf deploy, added by liucm 20170421 --> ^M <Context path="/" docBase="/home/tomcat/pre-rule-check-service" debug="0" reloadable="false"/>^M </Host>^M </Engine>^M </Service>^M </Server>^M ``` **解决办法如下:** ``` dos2unix catalina.sh [aici@localhost conf]$ dos2unix server.xml dos2unix: converting file server.xml to Unix format ... ```