πŸ”¬
Documentation
  • πŸ‘‹Development Documentation
  • Overview
    • πŸ’‘What we do
    • ✨Our Features
  • Product Guides
    • πŸ“ͺMaking a post
    • πŸ“ŽUnderstanding Projects
  • Fundamentals
    • πŸ› οΈGetting set up
      • πŸ“Setting permissions
      • πŸ§‘Inviting Members
  • Use Cases
    • 🎨For Designers
    • Page 1
    • πŸ–₯️For Developers
      • Example of .gitignore
      • Cusotm Theme File Sync script for specified directories with auto git commit
    • ◀️List of Plugins
    • πŸ‘¨β€πŸ’»Tips and Tricks
      • CLI schedule task and consume service
      • ♻️Automatic database backup (Updated)
      • πŸ› οΈExecute a command from host to docker using terminal
      • πŸ“‹Shopware 6 commands
      • πŸ˜€Activate all plugins via CLI
      • ☠️Kill a process on a port [Linux]
      • πŸ“„How do you import the database using CLI
      • πŸ‘¨β€πŸ”§Change PHP Configuration [Terminal]
      • πŸ‘οΈAccess to PHP Path Aixspro
      • 🌐Manage Apache services [Linux]
    • πŸ“„SQL Tips & Tricks (shopware 6)
Powered by GitBook
On this page
  • How to kill a process on a port on ubuntu
  • FOR UBUNTU
  • 1- Find what application/process is using the pro, type:
  1. Use Cases
  2. Tips and Tricks

Kill a process on a port [Linux]

how one can kill a process on a port on ubuntu

How to kill a process on a port on ubuntu

You want to use backtick, not regular tick:

sudo kill -p `sudo lsof -t -i:9001`

If that doesn’t work, you could also use $() for command interpolation:

sudo kill -p $(sudo lsof -t -i:9001)

FOR UBUNTU

1- Find what application/process is using the pro, type:

sudo netstat -lpn |grep :8080

and press Enter.

tcp6       0      0 :::8080                 :::*                    LISTEN      6782/java

You will get an output similar to this one

I have got the process Id, which is 6782, now this is the process that is using port 8080.

Kill the process, type: kill -p 6782

kill -p 6782
PreviousActivate all plugins via CLINextHow do you import the database using CLI

Last updated 2 years ago

πŸ‘¨β€πŸ’»
☠️