apache安装与配置 qgis
安装Apache:
在Ubuntu上:
sudo apt-get install apache2
在CentOS上:
sudo yum install httpd
启动Apache服务:
在Ubuntu上:
sudo systemctl start apache2
在CentOS上:
sudo systemctl start httpd
设置Apache开机自启动:
在Ubuntu上:
sudo systemctl enable apache2
在CentOS上:
sudo systemctl enable httpd
配置Apache:
Ubuntu:
sudo systemctl restart apache2
CentOS:
sudo systemctl restart httpd
Ubuntu:
/etc/apache2/apache2.conf
CentOS:
/etc/httpd/conf/httpd.conf
配置文件路径:
修改配置文件后,重启Apache服务:
安装QGIS:
添加EPEL仓库:
sudo yum install epel-release
添加QGIS仓库:
sudo yum install https://qgis.org/centos/7/x86_64/qgis-release-7-1.noarch.rpm
安装QGIS:
sudo yum install qgis qgis-grass
添加QGIS仓库:
sudo nano /etc/apt/sources.list
添加以下内容:
- deb https://qgis.org/ubuntu-ltr bionic main
- deb-src https://qgis.org/ubuntu-ltr bionic main
更新软件包列表:
sudo apt-get update
安装QGIS:
sudo apt-get install qgis qgis-plugin-grass
在Ubuntu上:
在CentOS上:
配置QGIS:
启动QGIS:
qgis
配置QGIS插件、数据源等。
本篇文章内容来源于:apache安装与配置 qgis
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。