zoukankan      html  css  js  c++  java
  • 尼玛,太牛B了,Apache双版本重装

    打算认真学习一次PHP,前端屌丝的专心语言。Nodejser别喷我了,先学这个吧。N久之前装过一次PHP环境,很久没用,我以为没有装过,又重装了一次,这次找到一个apache2.0.60,应该是这个版本,才发现自己还有一个,2.2.22。而且还是有问题,具体什么问题就是根本不是网站服务器。我把它们都删除了,然后再安装apache2.2.22。居然提示安装失败。

    系统找不到指定的文件: No installed service named"Apache2"

    我顿时想起了,刚才把全部服务都干掉了,这时我进去服务,看到了apache只有错误的信息。这下坏了,我心想肯定弄不了,Google之后,我找到了解决方法,so easy,再也不用担心了。

    是系统服务没有apache2这个,你到apache的bin目录下:
    httpd.exe -k install -n apache2
    D:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd -k install
    Installing the Apache2.2 service
    (OS 1073)指定的服务已存在。 : Failed to create WinNT Service Profile
    D:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd.exe -k install
    Installing the Apache2.2 service
    (OS 1073)指定的服务已存在。 : Failed to create WinNT Service Profile
    D:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd.exe -k start [Tue Mar 19 23:08:04 2013] [error] (OS 2)系统找不到指定的文件。 : No installed
    service named "Apache2.2".
    -------------------------------------以上是我在乱试 ----------------------------
    D:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd -k install -n apache2
    Installing the apache2 service
    The apache2 service is successfully installed.
    Testing httpd.conf....
    Errors reported here must be corrected before the service can be started.
    httpd: Could not reliably determine the server's fully qualified domain name, us
    ing 192.168.0.102 for ServerName
    跟着就有了apache2这个服务了~~

    然后你就可以再次start httpd服务了。

  • 相关阅读:
    查看线程
    shiro+多tomcat+redis实现session共享
    win11系统设置笔记本合盖上不休眠
    nvm切换node版本出现乱码 exit status 1:
    nvm安装vuecli
    SQL Server Management 2012 启动错误及解决:Cannot find one or more componets
    SQL Server 2012 连接 Oracle 11gR2 Database
    SQL Server 数据库跨区域时间问题
    SSIS 同步不同数据库的不同两张表
    Reporting Service 不能发送订阅报表的问题
  • 原文地址:https://www.cnblogs.com/coolicer/p/2970251.html
Copyright © 2011-2022 走看看