为了更高效的运维工作,写了下面关于nginx源码编译之后,配置systemctl开机自启动的脚本,其他源码编译类似的应用服务也可以使用下面脚本,需要更改对应的信息。
1 | [root@leoheng ~]# find / -name nginx.pid |
- 本文作者: Leoheng
- 本文链接: http://www.leoheng.com/2021/08/09/Systemctl系统启动Nginx服务脚本/
- 版权声明: Design by leoheng
学习,让自己更强大!
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia-plus根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true