linux后台启动命令

后台启动:nohup bin/hive --service metastore >> logs/metastore.log 2>&1 &
Linux shell中2>&1的含义解释 (全网最全,看完就懂)
Shell 输入/输出重定向

nohup:

  1. nohup stands for "no hang up". It allows a command to continue running even after the user who issued the command logs out or closes the terminal.

    When a command is prefixed with nohup, it ensures that the command is immune to hangups (i.e., disconnections from the controlling terminal).

    &:

  2. The & (ampersand) operator is used to run a command in the background. It allows the user to continue using the terminal while the command is running.

    When a command is followed by &, it runs asynchronously in the background, and the user can continue issuing other commands in the same terminal session.

  • nohup ensures that a command keeps running even after the terminal is closed, while & runs a command in the background, allowing the user to continue using the terminal for other tasks. However, without nohup, background processes started with & will terminate if the terminal is closed.
相关推荐
wanhengidc3 分钟前
云手机中的数据通常存储在哪里?
运维·服务器·安全·web安全·智能手机
凌寒1116 分钟前
Linux(Debain)安装Redis、数据迁移
linux·运维·服务器·redis
7***q60824 分钟前
在linux(Centos)中Mysql的端口修改保姆级教程
linux·mysql·centos
云渠道商yunshuguoji40 分钟前
亚马逊云渠道商:怎么使用Spot实例实现成本降低70%?
运维·架构
2501_921939261 小时前
11.25Nginx服务器和Wordpress服务器
运维·服务器·nginx
用户476022022781 小时前
机器配置免密切root
linux
dntktop1 小时前
搜索+计算+插件…这个“全能管家”让你告别80%的桌面图标
运维·windows·自动化·编辑器
ALex_zry1 小时前
Consul全方位入门指南:第二阶段—— 实操。Consul核心功能与项目集成
运维·docker·微服务·云原生·架构
wanhengidc2 小时前
云手机中分布式存储的功能
运维·服务器·分布式·游戏·智能手机·云计算
上班日常摸鱼2 小时前
防火墙高级配置完整教程:端口映射+访问控制策略+iptables规则编写
运维