摘要: 在/etc/init.d/目录下创建一个简单的服务脚本,假设脚本名为hello 第一行的"#!/bin/sh"一定要有, 否则有可能会报错。 然后赋予hello可执行权限,如:chmod +x /etc/init.d/hello如果执行service hello时报错: hello.service 阅读全文
posted @ 2017-11-30 13:02 刘镇维 阅读(280) 评论(0) 推荐(0) 编辑