#西里网#
  1. 安装Apache:

    • 在Ubuntu上:sudo apt-get install apache2

    • 在CentOS上:sudo yum install httpd

  2. 启动Apache服务:

    • 在Ubuntu上:sudo systemctl start apache2

    • 在CentOS上:sudo systemctl start httpd

  3. 设置Apache开机自启动:

    • 在Ubuntu上:sudo systemctl enable apache2

    • 在CentOS上:sudo systemctl enable httpd

  4. 配置Apache:

    • Ubuntu:sudo systemctl restart apache2

    • CentOS:sudo systemctl restart httpd

    • Ubuntu:/etc/apache2/apache2.conf

    • CentOS:/etc/httpd/conf/httpd.conf

    • 配置文件路径:

    • 修改配置文件后,重启Apache服务:

  5. 安装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

    • 添加以下内容:

      1. deb https://qgis.org/ubuntu-ltr bionic main
      2. deb-src https://qgis.org/ubuntu-ltr bionic main
    • 更新软件包列表:sudo apt-get update

    • 安装QGIS:sudo apt-get install qgis qgis-plugin-grass

    • 在Ubuntu上:

    • 在CentOS上:

  6. 配置QGIS:

    • 启动QGIS:qgis

    • 配置QGIS插件、数据源等。

本篇文章内容来源于:apache安装与配置 qgis