Linux服务器运维必备技能 软件包和启动项超详细整理( 三 )

# 查询启动项 systemctl list-unit-files --type=service | grep 'enabled'

Linux服务器运维必备技能 软件包和启动项超详细整理

文章插图
 
2. Ubuntu系统下的设置(1) rcconfsudo apt-get install rcconfrcconf
Linux服务器运维必备技能 软件包和启动项超详细整理

文章插图
 
(2) sysv-rc-conf# 把/etc/init.d/teststart加入服务sudo sysv-rc-conf teststart on四、登陆/注销时自动运行的程序1. 登陆时运行脚本/etc/profile用户登陆时 , bash先自动执行系统管理员建立的全局登陆脚本 :
然后会按顺序查找以下文件:
  • ~/.bash_profile
  • ~/bash_login
  • ~/.profile
    只执行最先找到的一个 。
2. 注销登陆时运行脚本设置脚本:~/.bash_logout




推荐阅读