1. 用户登录后自动执行shell脚本文件,分别为:
    .bashrc和.bash_profile,这两个脚本文件都位于主目录下。
    .bashrc
    运行前执行系统的脚本/etc/bashrc, /etc/bashrc包含了基本配置数据。
    .bash_profile
    运行前执行系统的脚本/etc/profile,/etc/profile用于配置环境变量。
  2. 如果希望用户登录后就启动某个服务,可以在.bashrc文件中配置
  3. profile文件中PATH路径的含义:
    配置服务自启动

相关文章:

  • 2022-01-14
  • 2021-11-22
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-11-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
相关资源
相似解决方案