惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
Google Developers Blog
S
SegmentFault 最新的问题
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
罗磊的独立博客
H
Hackread – Cybersecurity News, Data Breaches, AI and More
量子位
P
Proofpoint News Feed
博客园 - 【当耐特】
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
F
Fortinet All Blogs
C
Check Point Blog
博客园_首页
I
InfoQ
Jina AI
Jina AI
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
酷 壳 – CoolShell
酷 壳 – CoolShell
Engineering at Meta
Engineering at Meta
美团技术团队
Vercel News
Vercel News
Apple Machine Learning Research
Apple Machine Learning Research

博客园 - simhare

Fix “Windows cannot access the specified device path or file” Error Domain Space mysql 登录后 修改密码 git delete repository php - func_get_args mysql key mul - 看不懂 mysql show create table `tablename` 查看建表语句 zend framework assumptions linux vsftpd linux chkconfig pkill kill 看看自己是谁 linux 本地编码-如何解决乱码 linux添加用户-例如oracle 博文阅读密码验证 - 博客园 yum 只下载不安装 mysql netstat linux pts tty linux pts Linux 启动 进入单用户模式 其他用户无法连接
apache start stop
simhare · 2013-05-01 · via 博客园 - simhare

[root@DBSVR01 e]# service httpd status
httpd is stopped
[root@DBSVR01 e]# apachectl start
httpd: Could not reliably determine the server's fully qualified domain name, using 168.168.80.8 for ServerName
[root@DBSVR01 e]# vim /etc/hosts
[root@DBSVR01 e]#

[root@DBSVR01 e]# apachectl start
httpd: Could not reliably determine the server's fully qualified domain name, using 168.168.80.8 for ServerName
[root@DBSVR01 e]# vim /etc/hosts
[root@DBSVR01 e]# apachectl -k start
httpd: Could not reliably determine the server's fully qualified domain name, using 168.168.80.8 for ServerName
httpd (pid 1733) already running
[root@DBSVR01 e]# service httpd start
Starting httpd:
[root@DBSVR01 e]# service httpd status
httpd (pid  1733) is running...
[root@DBSVR01 e]#

[root@DBSVR01 e]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 168.168.80.8 for ServerName
                                                           [  OK  ]
[root@DBSVR01 e]#

(httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.111 for ServerName)
是因为DNS没配置好. 如果不想配置DNS, 就在httpd.conf , 在最前加入 ServerName localhost:80 即可

[root@DBSVR01 e]# /usr/sbin/apachectl -k stop
httpd: Could not reliably determine the server's fully qualified domain name, using 168.168.80.8 for ServerName
[root@DBSVR01 e]# service httpd status
httpd dead but subsys locked
[root@DBSVR01 e]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using 168.168.80.8 for ServerName
                                                           [  OK  ]
[root@DBSVR01 e]# i

[root@DBSVR01 e]# /usr/sbin/apachectl help
Usage: /usr/sbin/httpd [-D name] [-d directory] [-f file]
                       [-C "directive"] [-c "directive"]
                       [-k start|restart|graceful|graceful-stop|stop]
                       [-v] [-V] [-h] [-l] [-L] [-t] [-S]
Options:
  -D name            : define a name for use in <IfDefine name> directives
  -d directory       : specify an alternate initial ServerRoot
  -f file            : specify an alternate ServerConfigFile
  -C "directive"     : process directive before reading config files
  -c "directive"     : process directive after reading config files
  -e level           : show startup errors of level (see LogLevel)
  -E file            : log startup errors to file
  -v                 : show version number
  -V                 : show compile settings
  -h                 : list available command line options (this page)
  -l                 : list compiled in modules
  -L                 : list available configuration directives
  -t -D DUMP_VHOSTS  : show parsed settings (currently only vhost settings)
  -S                 : a synonym for -t -D DUMP_VHOSTS
  -t -D DUMP_MODULES : show all loaded modules
  -M                 : a synonym for -t -D DUMP_MODULES
  -t                 : run syntax check for config files
[root@DBSVR01 e]#