Heutzutage benutzen (fast) alle Distributionen systemd
yum search apache
yum install httpd
rpm -ql httpd | grep etc/
vi /etc/httpd/conf/httpd.conf
apachectl configtest
chkconfig httpd on service httpd start
service httpd status
ps ax | grep httpd
lsof -i :80
oder
ss -puta '( dport = :http or sport = :http )'
wget http://localhost
zypper search apache
zypper install apache2
rpm -ql apache2 | grep etc/ rpm -qc apache2
vi /etc/apache2/httpd.conf
apache2ctl configtest
chkconfig apache2 on service apache2 start
service ssh status
systemctl status ssh.service
ps ax | grep httpd
lsof -i :80
oder
ss -puta '( dport = :http or sport = :http )'
wget http://localhost
aptitude search apache apt-cache search apache
apt-get install apache2
dpkg -L apache2 | grep etc/ dpkg -s apache2 | grep etc/
vim /etc/apache2/httpd.conf
apache2ctl configtest
service restart ssh.service
service status ssh.service
ps ax | grep apache
lsof -i :80
oder
ss -puta '( dport = :http or sport = :http )'
wget http://localhost
Beispiel: rsyslog
dpkg -l | grep log dpkg -S log
dpkg -L rsyslog | grep etc/ dpkg -s rsyslog | grep etc/ vim /etc/rsyslog.conf
leider gibt es dafür keinen einheitlichen Weg, bei rsyslog geht es so:
rsyslogd -N1
service reload ssh.service
oder
service restart ssh.service
service status ssh.service
ps ax | grep ssh
lsof -i :22
oder
ss -puta '( dport = :ssh or sport = :ssh )'
logger -p local3.info -t test 'test'