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.
相关推荐
霁月的小屋11 小时前
Docker 工程化实践(六):Docker Compose 管理多容器应用
运维·docker·容器
2601_9657984711 小时前
How to Build a Custom Artisan Store on WordPress: Crafti Theme Review
linux·服务器·数据库
mounter62511 小时前
深度解析 Linux 内核中的 iomap 子系统:历史、演进、核心机制与未来
linux·文件系统·linux kernel·kernel·iomap
luyun02020211 小时前
论坛里的小工具,吾爱出品
运维·服务器·windows
江湖有缘11 小时前
Docker实战 | 使用Docker部署EasyNode服务器面板工具
服务器·docker·容器
你怎么知道我是队长12 小时前
计算机虚拟存储管理与页面置换算法详解
服务器·网络·算法
Miao1213112 小时前
工程交付指标入门:如何重新掌控软件交付
大数据·运维·devops
涛声依旧3931612 小时前
运维项目:InnoAI SQL 助手
运维·数据库·sql
养海绵宝宝的小蜗12 小时前
LVS(Linux Virtual Server)项目知识点总结
linux·运维·lvs
阿黎021413 小时前
Linux驱动
linux