这个 ghost 博客整了一天了,依旧无法解决这个问题

2018-04-17 00:19:34 +08:00
 klii

用 ubuntu 安装博客,前面都通顺,但执行了 install ghost 就会提示

ost@VM-0-10-ubuntu:/var/www/ghost$ ghost install
✔ Checking system Node.js version
✖ Checking logged in user
✔ Checking current folder permissions
✔ Checking operating system compatibility
✔ Checking for a MySQL installation
✔ Checking memory availability
One or more errors occurred.

1) Checking logged in user

Message: You can't install Ghost with a user called ghost. Please use a different user(name).
Help: https://docs.ghost.org/docs/install#section-create-a-new-user

Debug Information:
OS: Ubuntu, v16.04
Node Version: v6.14.1
Ghost-CLI Version: 1.7.1
Environment: production
Command: 'ghost install'

Try running ghost doctor to check your system for known issues.

Please refer to https://docs.ghost.org/v1/docs/troubleshooting#section-cli-errors for troubleshooting.

我创建了一个非 root 用户的 ghost 用户,第一次授权了 root 权限,依旧提示上面的错误问题,第二次没有授权 root 可依旧提示上面的问题,真的无法解决了,求帮助

7147 次点击
所在节点    Ghost
13 条回复
ericls
2018-04-17 00:21:02 +08:00
gai yong hu ming.
klii
2018-04-17 00:25:49 +08:00
@ericls #1 改用户名不管授权不授权 root 用户都是错误
Lentin
2018-04-17 00:41:37 +08:00
用户名不能为 ghost …神奇… 你把 ghost 用户删了试试?
顺便安利一发 docker 大法好…
klii
2018-04-17 00:45:58 +08:00
@Lentin #3 改了用户名又提示
user is not in the sudoers file. This incident will be reported. 这 ghost 真是神奇,我不会用 docker 要不然直接用容器了
ericls
2018-04-17 00:47:51 +08:00
@klii 改用户名 然后把用户加到 sudoer
Showfom
2018-04-17 00:50:30 +08:00
这就是我放弃用 ghost 的原因 更新的换来换去 太烦了
klii
2018-04-17 00:59:26 +08:00
@ericls #5 添加到 sudoer 又提示 install: missing destination file operand after 'ghost'
Try 'install --help' for more information,这东西好难用
klii
2018-04-17 00:59:44 +08:00
@Showfom #6 所以你安装时怎么装上的
Showfom
2018-04-17 01:14:22 +08:00
@klii 当时可以用 ghost 这个用户名
klii
2018-04-17 01:22:48 +08:00
@Showfom #9 无语,我还是学习 docker 安装 ghost 算了。这个 ghost 真的难安装
ericls
2018-04-17 01:32:07 +08:00
@klii 感觉是少了参数
klii
2018-04-17 01:57:08 +08:00
@ericls #11 一直跟着官网文档,不知道那里少了
haozi1986
2018-04-17 07:22:41 +08:00
我记得后来新版本安装或者升级 Ghost 都不能用 ghost 用户了,需要再新建一个用户用来安装……
用 Ghost 也有很长时间了,后来感觉官方的升级改动越来越不合我心意,烦了,所以我后来换了 hexo

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/447354

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX