Ubuntu18.04 部署Mapserver服务

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.csdn.net/qq_41504423/article/details/99760863

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值