网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 服务器与数据库 > MySQL
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   IP: 117.95.50.87
Old 2016-05-30, 05:48 AM
LaPlatte LaPlatte is offline
初级会员
 
Join Date: 2005-07-30
Posts: 1
LaPlatte 现在声名狼藉
Default httpd: unrecognized service 的解决方案

最近在搭建Apache服务器的时候突然出现了 “httpd: unrecognized service”的错误,无法解析httpd服务,记录下解决方案。

问题描述
在使用命令“service httpd restart|start|stop”的时候会出现“httpd: unrecognized service”这样的错误。

原因分析
可能是安装了其他的与本服务有冲突的程序,导致本服务无法解析。

也有可能是系统服务损坏,导致无法启动。

解决方案
将httpd注册为系统服务即可,可使用如下代码:
Code:
#cd /usr/local/apache/bin/  ##进入你的Apache安装目录下的bin文件夹下 #cp apachectl /etc/rc.d/init.d/httpd
#vim /etc/rc.d/init.d/httpd
在#!/bin/sh这行下增加
# chkconfig: 2345 50 90 # description:Activates/Deactivates Apache Web Server)
其他
如果在执行”cp apachectl /etc/rc.d/init.d/httpd“命令时,出现
Code:
cp: not writing through dangling symlink ‘/etc/rc.d/init.d/httpd’
这样的错误,是因为之前建立的httpd的软连接没有删除,这种错误经常出现在安装过其他HTTP服务但是卸载没有卸载干净的情况下。

只要 ”rm /etc/rc.d/init.d/httpd“,问题即可解决。
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HostGator » Terms of Service topvip 虚拟主机 0 2008-03-06 10:35 AM
Google: 不成熟的厚重 adsense 闲话灌水 0 2006-06-24 10:29 PM

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 07:50 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.