In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the usage of the Linux basic command httpd". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Httpd
Httpd is the main program of apache Hypertext transfer Protocol, which is designed as a daemon to run independently. Httpd sets up a thread pool to process http requests.
The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.
1. Grammar
Httpd [options]
2. Parameter list
Option
Description
-d serverroot
Set the server root directory. Corresponding ServerRoot directives in the configuration file
-f config
Specifies the configuration file for the apache server. If the configuration file does not use an absolute path, then it is the path relative to ServerRoot
-k
Start | restart | graceful | stop | graceful-stop
Send information to the httpd process to control the httpd
-C
Process the specified instruction before reading the configuration file
-c
After reading the configuration file, process the specified instruction
-D param
Set the parameter, which can be used with the configuration file of apache
-e level
Set log level
-E file
Set up error message file
-h
Show short description options
-l
Displays a list of statically compiled httpd modules
-L
Displays a list of instructions in the apache service profile
-M
Display a list of httpd modules
-S
Show virtual host configuration
-t
Check the configuration file syntax
-v
Show httpd version
-V
Display configuration parameters and version information at compile time
-X
Run debug mode
3. Examples
1) restart the httpd service
[root@localhost ~] # httpd-k restart / / restart the service
You have new mail in / var/spool/mail/root
[root@localhost ~] #
2) Detection profile
[root@localhost ~] # httpd-t / / detect the configuration file with no errors
Httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
Syntax OK
[root@localhost ~] #
3) display modules in apache
[root@localhost] # httpd-M
Httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
Loaded Modules:
Core_module (static)
Mpm_prefork_module (static)
Http_module (static)
So_module (static)
Auth_basic_module (shared)
Auth_digest_module (shared)
Authn_file_module (shared)
Authn_alias_module (shared)
Authn_anon_module (shared)
Authn_dbm_module (shared)
This is the end of the introduction to "the usage of the Linux basic command httpd". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.