Important and commonly used commands under linux
1. Installation tools
(1) install apache, decompression tool, nginx, download tool, command line tool (ifconfig, route, arp, netstat, etc.) vim editor
# yum install httpd
# yum install unzip
# yum install nginx
# yum install wget
# yum install net-tools
# yum install vim*
(2) install mysql database and php database
# yum install mariadb mariadb-server
# yum install php php-mysql
(3) install java service
# yum install Java-1.6.0-openjdk-devel
2. Start (close, view) the process (service, status)
Systemctl start mariadb
Systemctl start httpd
Systemctl start nginx.service
Systemctl status firewalld.service
3. View error apache and nginx error logs
Tail / var/log/httpd/error_log
Tail / var/log/nginx/error.log