模拟电路入门者的个人空间 https://blog.eetop.cn/1352917 [收藏] [复制] [分享] [RSS]

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

Update-rc.d && rc.local管理Ubuntu的开机自启动cadence的license

已有 1738 次阅读| 2020-5-23 16:31 |系统分类:其他

  1. 实现原理systemd 默认会读取 /etc/systemd/system 下的配置文件,该目录下的文件会链接 /lib/systemd/system/ 下的文件。一般系统安装完 /lib/systemd/system/ 下会有 rc-local.service 文件,即我们需要的配置文件。2.将 /lib/systemd/system/rc-local.service 链接到 /etc/systemd/system/ 目录下面来    ln -fs /lib/systemd/system/rc-local.service /etc/systemd/system/rc-local.service修改文件内容    sudo gedit  /etc/systemd/system/rc-local.service在文件末尾增加        [Install]        WantedBy=multi-user.target        Alias=rc-local.service创建/etc/rc.local文件    sudo touch /etc/rc.local 编辑/etc/rc.local文件    sudo vim /etc/rc.local

    #!/bin/sh -e#echo "hello world" >> /home/chang/Desktop/test_rc_local#/opt/cadence/ic616/tools/bin/lmgrd -c /opt/cadence/ic616/share/license/license.dat/opt/cadence/ic616/tools/bin/lmgrd \     -c /opt/cadence/ic616/share/license/license.dat \     -l /opt/cadence/license/cadence_lic.logexit 0   这样以后再想管理开机自动启动就可以在/etc/rc.local中进行编辑了原文链接:https://blog.csdn.net/qq_41782149/java/article/details/89001226

  2. rc.local.tar.gz

最最最最最最最重要的是,删除/var/tmp下的旧文件,我是看了日志以后才知道的,就因为这个浪费了我好长时间。

关于update -rc.d

https://www.jianshu.com/p/342ff968af5a

https://blog.csdn.net/qq_35720307/article/details/87108831?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase

systemctl命令

syetemclt就是service 和 chkconfig这两个命令的整合,在CentOS 7 和 Ubuntu16 就开始被使用

启动服务:systemctl start nginx.service停止服务:systemctl stop nginx.service重启服务:systemctl restart nginx.service查看服务状态:systemctl status nginx.service设置开机自启动:systemctl enable nginx.service停止开机自启动:systemctl disable nginx.service查看所有服务(包括启动失败的,已经启动的,退出运行的):systemctl list-units --type=service查看启动的服务:systemctl list-unit-files | grep enabled


点赞

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 6

    关注
  • 10

    粉丝
  • 18

    好友
  • 3

    获赞
  • 12

    评论
  • 3827

    访问数
关闭

站长推荐 上一条 /1 下一条

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-3-29 03:10 , Processed in 0.025542 second(s), 14 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部