---
title: "linux 启动服务 与 自启动"
author: "heiyan"
date: "2011-03-18T22:12:00Z"
tags: []
slug: "linux"
draft: false
lastmod: "2011-10-02T18:55:05Z"
id: 1184728
url: "https://heiyan.iteye.com/blog/1184728"
---

sync 为例

#/usr/bin/rsync --daemon

就是启动服务，呵呵。强大的守护进程

echo "/usr/bin/rsync --daemon" &gt;&gt; /etc/rc.local

加入开机自启动

当然也可以 vi /etc/rc.local 去查看下