HOW TO VIEW LOG FILE IN VPS
Want to see the log when working in VPS server administrator must how. In Linux, the entire server log file is stored in / var / log. To move to this folder you use the command: cd / var / log / 1 cd / var / log / ls -l to list Use all files in this folder you will find some of the log file: /var/log/auth.log: Save the log on authentication /var/log/boot.log: log activities during system boot / var / log / cron: log note schedule automatic operation of / var / log / dmesg: Just log messages below but mostly log buffer / var / log / messages: log note of the general information system / var / log / httpd /: the directory service log contains Apache / var / log / maillog: the activity log on the mail server / var / log / secure: security log / var / log / wtmp: log published import /var/log/yum.log: the log of Yum If you install other software, will have log files with corresponding names here. to view the log files we often use the tail or less 1: more -f / var / log / secure 1: tail -n 30 / var / log / secure 30 // see the first line of the log
đang được dịch, vui lòng đợi..