Ubuntu18.04 部署Mapserver服务
MapServer7.4.1+Apache2
MapServer7.4.1安装
直接从UbuntuGIS上下载安装包
按照顺序执行下面三个命令
$ sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
$ sudo apt-get update
$ sudo apt-get install mapserver-bin



Apache2下载与配置
$ sudo apt-get install apache2

进入配置文件中取消一行注释
$ sudo gedit /etc/apache2/sites-available/000-default.conf
找到#Include conf-available/serve-cgi-bin.conf这一行删除#
再输入激活模块的命令
$ sudo a2enmod actions cgi alias
$ sudo a2enmod actions cgid alias


重启Apache2
$ sudo systemctl restart apache2
![]()
使用MapServer
创建链接
$ sudo ln -s /usr/bin/mapserv /usr/lib/cgi-bin/mapserv
![]()
在浏览器地址栏输入http://127.0.0.1/cgi-bin/mapserv
页面出现No query information to decode. QUERY_STRING is set, but empty.代表MapServer部署完成!

参考文章
链接:https://blog.youkuaiyun.com/qq_41504423/article/details/99760863
1039



被折叠的 条评论
为什么被折叠?



