---
title: "linux常用命令"
author: "roway"
date: "2012-09-11T14:12:00Z"
tags: []
slug: "linux"
draft: false
lastmod: "2012-11-12T14:07:32Z"
id: 1722895
url: "https://roway.iteye.com/blog/1722895"
---

如何使用shell查看某个端口是否被占用  
方式一：netstat -tln | grep 8080  
方式二：lsof -i:8080  
用nohup命令让Linux下程序永远在后台执行