Meniu

9 Server Configuration checking useful commands

Server Configuration checking commands:

1.HTTP Webserver:

httpd -t

Run syntax tests for configuration files only. The program immediately exits after these syntax parsing tests with either a return code of 0 (Syntax OK) or return code not equal to 0 (Syntax Error).

2.SAMBA Server:

testparm

Testparm is a test program to check smb.conf for correctness.

3.SSH Test mode:

sshd -t

Only check the validity of the configuration file and sanity of the keys.

4.DNS Server configuration check:

named-checkconf

Checks the syntax of named configuration file.named-checkconf returns exit code 0 if no error detected otherwise it will be 1.

named-checkzone

named-checkzone checks the syntax and integrity of zone files.

5.Squid proxy server:

squid -k check
squid -k parse

Parse and check squid configuration file squid.conf


6.Nagios server:

nagios -v /etc/nagios.conf


7.FTP server(vsftpd)

vsftpd

8.DHCP server:

/usr/sbin/dhcpd -f

or

/etc/init.d/dhcpd configtest

9.Mysql Server:

/usr/libexec/mysqld –help -verbose

Mirela

Zona de mobile
  • | 34 articole

Nici un comentariu inca. Fii primul!
  • powered by Verysign