Apache 服务器配置

安装 Apache 服务

# 注意:需要使用管理员身份运行命令行!!!

# 切换到 Apache 解压路径中的 bin 目录

$ cd <解压目录>/bin# 安装 Apache 服务,‐n 参数是指定服务名称

$ httpd.exe ‐k install ‐n "Apache"

# 如果需要卸载 Apache,可以执行以下命令

$ httpd.exe ‐k uninstall ‐n "Apach

$ httpd.exe ‐k start ‐n "Apache"

# 重新启动 Apache 服务

$ httpd.exe ‐k restart ‐n "Apache"

# 停止 Apache 服务

$ httpd.exe ‐k stop ‐n "Apach

127.0.0.1 是本地回环地址

如果设备没有连接任何网络设备的情况下,我们会有一个本地回换地址 127.0.0.1 指向我们自己的地址

原文地址:https://www.cnblogs.com/bydzhangxiaowei/p/10959305.html