XeNote/posts/Code/Linux/Linux Commands.md
2020-12-01 06:28:42 +03:00

691 B
Raw Blame History

Başlangıç Uygulamalarını Listele

systemctl -t service --state=active

Tüm Uygulamaları Listele

systemctl -at service

Uygulama Başlangıç Durumunu Aç/Kapa

sudo systemctl enable {service}
sudo systemctl enable confluence.service

sudo systemctl disable {service}
sudo systemctl disable nginx.service

List All Ports with Apps

sudo netstat -peanut
sudo netstat -lp
netstat -tulpn | grep :6379
#Get the PID of the process
ps -u my_account -o pid,rss,command | grep redis
# then kill
sudo kill -9 the_pid

Stop Redis

 /etc/init.d/redis-server stop

#linux-code