簡體   English   中英

ubuntu 10.04 中的“update-rc.d: /etc/init.d/unicorn_app: 文件不存在”

[英]“update-rc.d: /etc/init.d/unicorn_app: file does not exist” in ubuntu 10.04

我正在嘗試在 linode 的 ubunton 10.04 中配置 unicorn + nginx 以部署我的 rails 應用程序,當我執行命令時:

sudo update-rc.d unicorn_app defaults

我收到下一個錯誤:

update-rc.d: /etc/init.d/unicorn_app: file does not exist

但是我可以在init.d文件夾中看到unicorn_app文件。 在 ubuntu 終端中, unicorn_app文件顏色為紅色,背景為灰色。

我該如何解決這個問題?

我猜 LS 中的“紅色”意味着 unicorn_app 是一個損壞的符號鏈接。 請嘗試ls -l /etc/init.d/unicorn_app ,看看它指向的文件是否存在。

此外,您可以運行file /etc/init.d/unicorn_app來查看它是否是損壞的符號鏈接。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM