-
In the Linux environment, apache is the start of the httpd service, and it is very simple to view the apache logs, just use the following command:
cd/var/log/httpd/
Then you can see different levels of Apache logs in this directory.
What is Apache logs:
Apache has a built-in ability to log server activity, and that's its logging feature. This series of articles on Apache Logs introduces Apache access logs, error logs, how to analyze log data, how to customize Apache logs, and how to generate statistical reports from log data.
If Apache is installed by default, two log files will be generated as soon as the server is running. These two files are the Access Log (which is on Windows) and the Error Log (which is on Windows. With the default installation, these files can be found under usr local apache logs; For Windows systems, these log files will be saved in the Logs subdirectory of the Apache installation directory.
Different package managers put log files in a variety of different locations, so you may need to look elsewhere or use the configuration file to see where the log files are configured.
-
1.Determine your Apache working path: [ps-aux];
2.You can check to see if there is a specific setting, usually the logs folder and the conf folder are in the same parent directory;
3.The access log is the access log, and the error log is the error log.
4.If all of the above attempts fail, then you can see in the var log messages.
-
1. First of all, you need to determine your Apache working path: ps -aux2, and secondly, you can check to see if there is a specific built-in configuration, generally the logs folder and the conf folder are in the same parent directory;
3. The access log is access log, and the error log is error log.
4. If the above attempts fail, then you can take a look at the var log messages.
-
1 Apache log location.
var/log/apache2/
Error message: var log apache2
Additional information: var log apache2
View these logs on the command line: (root privilege required) 2 commands such as cat, head, more, vi, vim and other commands can view the log files of apche.
sudo cat var log apache2 $ sudo vi var log apache2 3 tailf command to continuously view file update information:
sudo tailf /var/log/apache2/
-
Linux will use the head command -n 1000 for the first 1000 lines when looking at the first few lines.
Access logs. more pipe conforms to plus more is 1000 records to turn pages to view.
-
Using the command below, it can be achieved.
head -1000
Replace it with the actual log name of Apache.
-
Below the main configuration file is the location of the log file.
-
In general, if you look at the error report, the logs are in that folder unless you change the location of the logs in it.
cd /var/log/htppd
more error_log
-
This idea sounds a lot like how to get someone's money out without knowing their bank card password
I'd like to know the answer
-
Now there are many mobile 4G** There are many options available, the following figure is the new traffic that began to be implemented in June this year**, as long as it is a mobile 4G**, you can choose any of these files** suitable for your own ** to use. 1. Mobile phone supportIf you want to use the 4G network, you need to support the mobile phone.
-
It sounds a lot like how to get someone's money out without knowing their bank card password, and I want to know the answer
tar jxvf and then enter the directory that has just been extracted, and execute the following command. >>>More
<> Method 2: CNKI.
It has reached cooperation with more than 100 international publishing houses in the world, integrated and published hundreds of important academic databases and more than 300 million Chinese and foreign literature. For example, Elsevier. >>>More
Detect the Linux system.
The following describes whether to enable the FTP server >>>More
Here's how to enter secure boot mode:
Method 1: 1Boot. >>>More
Use ghost to put two systems on two different disks.