【发布时间】:2020-03-24 07:03:56
【问题描述】:
【问题讨论】:
-
配置什么端口来运行apache服务?
【问题讨论】:
除了使用来自https://ms4w.com 的 setup.exe 安装程序之外,您还可以使用那里提供的 .zip 手动安装 MS4W;您可以使用以下步骤来验证您的安装:
C:/
ms4w
Apache
apps
...
cd c:/ms4w
setenv.bat
GDAL, mapserv, Python, PHP, and commandline MS4W tools path set
apache-install.bat
Installing the 'Apache MS4W Web Server' service
The 'Apache MS4W Web Server' service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
The Apache MS4W Web Server service is starting.
The Apache MS4W Web Server service was started successfully.
C:/ms4w/Apache/logs查看Apache日志
mapserv -v
MapServer version 7.6.0-dev (MS4W 4.0.3) OUTPUT=PNG OUTPUT=JPEG OUTPUT=KML SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=POINT_Z_M SUPPORTS=PBF INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
gdalinfo --formats 或 shp2img 等(基本上您现在可以调用任何位于 C:/ms4w/tools 中的工具,而无需必须在那里更改目录)127.0.0.1 <enter>
【讨论】: