`
AdyZhang
  • 浏览: 14828 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

安装Apache问题:系统找不到指定的文件 No installed service named "Apache2"

阅读更多

安装Apache问题:系统找不到指定的文件 No installed service named "Apache2"

每次到这一步都很小心防它的端口冲突问题,结果,特意留出来的80端口就是不能用,烦。

解决方法确保几处:

1、停止IIS启动

2、把端口80改成其它 (譬如90,800,,,什么数字都好)

3、防火墙(关掉试试)

在运行处输入 cmd 回车,转到apache的安装目录,然后进入bin 目录,即
cd bin ,在这里后 打入 apache.exe -k install 后回车,然后重启Apache 就OK了。。

哎,最好是能用80端口啊。

--------------------------

解决方案
在Dos命令控制台,切换至Apache安装目录Bin目录
执行命令
apache -k install
这时可能会出现Could not bind to address 0.0.0.0:80提示信息,我安装时用的是80端口
这表示端口已被占用,有两种方法解决这个问题
1、将使用80端口的应用程序或服务停掉,Can not do this.
2、给Apache换个端口,编辑conf/httpd.conf文件,将8080替换成你想设置的端口,比如6060
有两个地方需要替换一个是“Listen 80”,另一个是“ServerName localhost:80”
重新执行命令
apache -k install
这时服务才被重新安装
再执行命令
apache -k start启动服务,OK

分享到:
评论

相关推荐

    入门学习Linux常用必会60个命令实例详解doc/txt

    在使用mount这个指令时,至少要先知道下列三种信息:要加载对象的文件系统类型、要加载对象的设备名称及要将设备加载到哪个目录下。 (1)Linux可以识别的文件系统 ◆ Windows 95/98常用的FAT 32文件系统:vfat ;...

    项目异常汇总

    使用Spring框架时,找不到名为`sessionFactory`的bean。 **异常信息:** 错误提示通常会指出未找到名为`sessionFactory`的bean。 **异常原因:** 1. **配置错误:** Spring的配置文件中可能没有正确配置`...

    apache-maven-3.0.2-bin

    * [MNG-4913] - [regression] User properties override equally named POM properties of transitive dependencies * [MNG-4915] - Versions in pom.xml are not checked for invalid characters * [MNG-4918] -...

    Maven-The Complete Reference.pdf

    ### 2. Installing Maven **2.1 Verify Your Java Installation** Before installing Maven, ensure that Java is installed on your system. Maven requires Java to run. You can check if Java is installed by...

    apktool documentation

    I: Framework installed to: 2-htc.apk // pkgId-tag.apk $ apktool if framework-res.apk -p foo/bar I: Framework installed to: foo/bar/1.apk $ apktool if framework-res.apk -t baz -p foo/bar I: ...

    drupal 6.12

    2. CREATE THE CONFIGURATION FILE AND GRANT WRITE PERMISSIONS Drupal comes with a default.settings.php file in the sites/default directory. The installer uses this file as a template to create your ...

    tomcat-5.5.23

    Install the JRE according to the instructions included with the release. <br>(1.3) Set an environment variable named JAVA_HOME to the pathname of the directory into which you installed the ...

Global site tag (gtag.js) - Google Analytics