gaowei-space / markdown-blog

🍭 Markdown-Blog 是一款小而美的Markdown静态博客程序 | Markdown-Blog is incredibly fast, easy to use, and converts Markdown formatted text files into beautifully rendered HTML pages.
https://blog.gaowei.tech
MIT License
432 stars 57 forks source link

有人试过远端部署成功吗? #6

Closed Alafun closed 1 year ago

Alafun commented 1 year ago

我的服务器是阿里云,具体配置如下 image 下载了版本 markdown-blog-linux-amd64 解压的时候报错如下: image 运行./markdown-blog web 命令之后一直没有反应; 看来之前关闭的issue, 尝试之后无果.

gaowei-space commented 1 year ago

加一下 -e dev 参数看看有没有什么错误输出。我的个人博客当前也是这么启动的,运行正常,http://blog.gaowei.tech

Alafun commented 1 year ago

加一下 -e dev 参数看看有没有什么错误输出。我的个人博客当前也是这么启动的,运行正常,http://blog.gaowei.tech

image

今天把阿里os换成了centos steam, 然后需要重新配置nginx吗?

gaowei-space commented 1 year ago

@Alafun 从当前的日志信息来看应该启动成功了,你试试配置下nginx后访问 或者 阿里云服务器开放一下 5006 端口,然后通过IP:port 的方式访问看看

Alafun commented 1 year ago

通过IP:port 的方式访问看看

IP:PORT 可以访问nginx的 index.html

Alafun commented 1 year ago

image

For systems using NGINX: You should now put your content in a location of your choice and edit the root configuration directive in the nginx configuration file /etc/nginx/nginx.conf.

gaowei-space commented 1 year ago

@Alafun 放开5006端口后,访问:http://服务器IP:5006,展示的nginx页面?🫣

Alafun commented 1 year ago

放开5006端口后,访问:http://服务器IP:5006,展示的nginx页面

安全组添加5006 端口之后, 访问不了IP:5006

gaowei-space commented 1 year ago

@Alafun

用该命令测试下,端口是否正确放通

wget 服务器IP:5006

Mac环境,如果端口正常放通,会输出以下响应 image

gaowei-space commented 1 year ago

@Alafun 放通的端口协议记得选 tcp

Alafun commented 1 year ago

@gaowei-space image 这样对吗

Alafun commented 1 year ago

但是ping不通端口,wget一直链接超时

gaowei-space commented 1 year ago

@Alafun 如果没放通 ICMP协议 端口,ping 不通属于正常的;看你阿里云安全策略应该是没问题了,怀疑是服务器内还有限制防火墙限制,参考这篇文章排查看看 http://www.kaixinit.com/centos/4838.html

Alafun commented 1 year ago

image

gaowei-space commented 1 year ago

@Alafun 目前还是不行吗?系统内的防火墙停止 systemctl stop firewalld 了看看呢?

gaowei-space commented 1 year ago

@Alafun 下午更新支持了 docker 部署,如果云服务器已经安装了docker,部署起来会更加简单,可以试试

Alafun commented 1 year ago

昨天试了,第一次接触docker,成功跑了Wordpress,但是好像跑不起来markdown-blog(可以pull下来)

gaowei-space commented 1 year ago

@Alafun 尴尬了,应该和云服务有关系,不确定发布的Docker版本中是否包含你所用服务器的架构~

gaowei-space commented 1 year ago

@Alafun issue 沟通比较费时,有时间看下邮件哈~

Alafun commented 1 year ago

哦啦