ln -s /lib/systemd/system/redis.service /etc/systemd/system/multi-user.target.wants/redis.service
时间: 2023-09-23 22:05:21 浏览: 142
Windows 和 Linux 上Redis的安装守护进程配置方法
ln -s /lib/systemd/system/redis.service /etc/systemd/system/multi-user.target.wants/redis.service命令的作用是创建一个符号链接,将/lib/systemd/system/redis.service链接到/etc/systemd/system/multi-user.target.wants/目录下的redis.service文件。这样做的目的是将redis.service服务添加到系统启动时要运行的服务列表中。通过创建这个符号链接,当系统启动时,redis服务将被自动启动。 <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Linux 问题解决 :/lib/systemd/systemd-journald 占用内存过高](https://blog.csdn.net/zhangpeterx/article/details/90666108)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)解决方案](https://blog.csdn.net/xufengduo/article/details/100740129)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文