检查httpd服务运行状态的命令是()
A: ss -a|grep http
B: ss -nutao|grep httpd
C: ss -nutap|grep http
D: ss -nutap|grep httpd
A: ss -a|grep http
B: ss -nutao|grep httpd
C: ss -nutap|grep http
D: ss -nutap|grep httpd
举一反三
- 要查看 httpd 服务进程的信息,可以使用命令?( ) A: ps<br/>aux|grep httpd B: ps<br/>-ef|grep httpd C: lsof<br/>-i:80 D: jobs<br/>| grep httpd
- 重启http服务的命令是( ) A: systemctl restart httpd B: systemctl httpd restart C: systemctl restart http D: systemctl http restart
- 将apache配置文件中的端口号直接修改为8080,可用() A: grep’s/listen.*/listen8080/’/etc/httpd/conf/httpd.conf B: sed-i’s/listen.*/listen8080/’/etc/httpd/conf/httpd.conf C: sed’/listen.*/d’/etc/httpd/conf/httpd.conf D: sed-n’/listen.*/p’/etc/httpd/conf/httpd.conf
- 使用systemctl命令查询httpd服务运行状态的命令是() A: systemctl start httpd B: systemctl status httpd C: systemctl stop httpd D: systemctl restart httpd
- ( )命令能用来查找在文件TESTFILE中包含4个字符的行。 A: grep '???? ' TESTFILE B: grep '…. ' TESTFILE C: grep '^????$' TESTFILE D: grep '^….$ ' TESTFILE