<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>centos7和CentOS8 rc.local 开机不自动执行的解决方法 &#8211; moneyslow.com</title>
	<atom:link href="https://moneyslow.com/tag/centos7%e5%92%8ccentos8-rc-local-%e5%bc%80%e6%9c%ba%e4%b8%8d%e8%87%aa%e5%8a%a8%e6%89%a7%e8%a1%8c%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/feed" rel="self" type="application/rss+xml" />
	<link>https://moneyslow.com</link>
	<description>making money with technology</description>
	<lastBuildDate>Mon, 12 Jul 2021 10:27:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.4</generator>
	<item>
		<title>centos7和CentOS8 rc.local 开机不自动执行的解决方法</title>
		<link>https://moneyslow.com/centos7%e5%92%8ccentos8-rc-local-%e5%bc%80%e6%9c%ba%e4%b8%8d%e8%87%aa%e5%8a%a8%e6%89%a7%e8%a1%8c%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95.html</link>
		
		<dc:creator><![CDATA[moneyslow]]></dc:creator>
		<pubDate>Mon, 12 Apr 2021 03:17:42 +0000</pubDate>
				<category><![CDATA[newest]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[centos7和CentOS8 rc.local 开机不自动执行的解决方法]]></category>
		<guid isPermaLink="false">https://moneyslow.com/?p=13052</guid>

					<description><![CDATA[CentOS 运维过程中 在 /etc/rc.d/rc.local 写入开机需要运行的命令，是在CentOS5-CentOS6 中常见做法。但是在CentOS7中，却出现了 rc.local 中命令，系统启动后却不执行的情况。 原因分析 rc.local 是 Sysvinit技术用于CentOS5-6的"init"进程在启动过程中最后执行的任务。但是众所周知，CentOS7和CentOS8 是使用了Systemd技术启动，开机不会运行init进程。为了兼容，CentOS 7 官方提供的方法是默认提供了一个名为“rc-local” 的 systemd 服务，负责系统启动后执行 rc.local 中的命令。但是有一个前提: /etc/rc.d/rc.local 必须是可执行（默认是不可执行的）。 解决方案 “激活” systemd 的"rc-local" 服务 (1) 在 /etc/rc.d/rc.local 写入你需要执行的linux命令 # vim /etc/rc.d/rc.local #!/bin/bash # Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure # that this script will be executed during [&#8230;]]]></description>
		
		
		
			</item>
	</channel>
</rss>
