How to find processes running on a certain port... and kill them
Get the processes for port 5000
lsof -t -i:5000
or
netstat -nlp | grep :5000
Now find where the process is running from...
ls -l /proc/[pid]/exe
Kill processes running on port 5000
kill 'lsof -t -i:5000'
How to add trusted root certificated to the server
- Install the ca-certificates package:yum install ca-certificates
- Enable the dynamic CA configuration feature:update-ca-trust force-enable
- Add it as a new file to /etc/pki/ca-trust/source/anchors/:cp foo.crt /etc/pki/ca-trust/source/anchors/
- Use command:update-ca-trust extract
No comments:
Post a Comment