当前位置: 首页 > wzjs >正文

mega Wordpress青岛网站关键词排名优化

mega Wordpress,青岛网站关键词排名优化,谢岗镇仿做网站,性价比最高网站建设文章目录 下载基础包下载源码包编译 PG编译 postgis编译安装 pgrouting下载源码包配置编译参数编译安装 初始化数据库建表并检查列是否使用了 lz4 压缩算法检查 postgis 与 pgrouting 是否可以成功创建 下载基础包 sudo apt update && sudo apt upgrade -y sudo apt i…

文章目录

  • 下载基础包
  • 下载源码包
  • 编译 PG
  • 编译 postgis
  • 编译安装 pgrouting
    • 下载源码包
    • 配置编译参数
    • 编译安装
  • 初始化数据库
  • 建表并检查列是否使用了 lz4 压缩算法
  • 检查 postgis 与 pgrouting 是否可以成功创建

下载基础包

sudo apt update && sudo apt upgrade -y
sudo apt install -y build-essential libreadline-dev zlib1g-dev flex bison libxml2-dev libssl-dev libgdal-dev \
libgeos-dev libproj-dev libprotobuf-c-dev protobuf-c-compiler libjson-c-dev sqlite3 libsqlite3-dev cmake pkg-config liblz4-dev \
git                    \
libboost-all-dev       \
libbz2-dev             \
liblz4-dev             \
libzstd-dev            \
libcurl4-openssl-dev

下载源码包

wget https://ftp.postgresql.org/pub/source/v15.6/postgresql-15.6.tar.gz
tar -xzf postgresql-15.6.tar.gzwget https://download.osgeo.org/postgis/source/postgis-3.4.2.tar.gz
tar -xzf postgis-3.4.2.tar.gz

编译 PG

./configure \--prefix=/usr/local/pgsql     \--with-openssl               \--with-libxml                \--with-readline              \--with-python	\--with-lz4 \PYTHON=/usr/bin/python3make -j$(nproc) world && make install-world

编译 postgis

./configure \--with-pgconfig=/usr/local/pgsql/bin/pg_config \--with-projdir=/usr \CPPFLAGS="-I/usr/include" \LDFLAGS="-L/usr/lib/x86_64-linux-gnu"make -j $(nproc)  && make installPostGIS is now configured for x86_64-pc-linux-gnu-------------- Compiler Info ------------- C compiler:           gcc -std=gnu99 -g -O2 -fno-math-errno -fno-signed-zeros -WallC++ compiler (Wagyu): gcc -std=c++11 -x c++ C++ compiler (FlatGeobuf): gcc -std=c++11 -x c++ CPPFLAGS:              -I/usr/include -I/usr/include  -I/usr/include/libxml2  -I/usr/include/json-c   -DNDEBUG -I/usr/includeLDFLAGS:              -L/usr/lib/x86_64-linux-gnu -lmSQL preprocessor:     /usr/bin/cpp -traditional-cpp -w -P -Upixel -UboolArchiver:             gcc-ar rs-------------- Additional Info ------------- Interrupt Tests:   ENABLED-------------- Dependencies -------------- GEOS config:          /usr/bin/geos-configGEOS version:         3.12.1GDAL config:          /usr/bin/gdal-configGDAL version:         3.8.4PostgreSQL config:    /usr/local/pgsql/bin/pg_configPostgreSQL version:   PostgreSQL 15.6PROJ4 version:        94Libxml2 config:       /usr/bin/xml2-configLibxml2 version:      2.9.14JSON-C support:       yesprotobuf support:     yesprotobuf-c version:   1004001PCRE support:         Version 2Perl:                 /usr/bin/perl--------------- Extensions --------------- PostgreSQL EXTENSION support:       enabledPostGIS Raster:                     enabledPostGIS Topology:                   enabledSFCGAL support:                     disabledAddress Standardizer support:       enabled-------- Documentation Generation -------- xsltproc:             xsl style sheets:     dblatex:              convert:              mathml2.dtd:          http://www.w3.org/Math/DTD/mathml2/mathml2.dtdconfigure: WARNING: 
configure: WARNING:  | You are building using --with-projdir. This option isn't standard and    |
configure: WARNING:  | might be incompatible with future releases of PROJ.                      |
configure: WARNING:  | You can instead adjust the PKG_CONFIG_PATH environment variable if you   |
configure: WARNING:  | installed software in a non-standard prefix.                             |
configure: WARNING:  | Alternatively, you may set the environment variables PROJ_CFLAGS and     |
configure: WARNING:  | PROJ_LIBS to avoid the need to call pkg-config. 

编译安装 pgrouting

下载源码包

git clone https://github.com/pgRouting/pgrouting.git
或下载压缩包
https://github.com/pgRouting/pgrouting/releases

配置编译参数

export PATH=/usr/local/pgsql/bin:$PATH
export LD_LIBRARY_PATh=/usr/local/pgsql/lib:$LD_LIBRARY_PATh
tar xf pgrouting-3.6.0.tar.gz
cd pgrouting-3.6.0
mkdir build && cd build
cmake .. \-DCMAKE_BUILD_TYPE=Release \-DCMAKE_INSTALL_PREFIX=/usr/local/pgsql \-DPOSTGRESQL_EXECUTABLE=/usr/local/pgsql/bin/pg_config

编译安装

make -j$(nproc)
make install
ldconfig

初始化数据库

useradd -m postgres
chown -R postgres:postgres /usr/local/pgsql
su - postgres
cd /usr/local/pgsql
./bin/initdb -U postgres -E UTF8 -D ./data

建表并检查列是否使用了 lz4 压缩算法

drop table if exists test_lz4;
CREATE TABLE test_lz4 (txt text COMPRESSION lz4);
INSERT INTO test_lz4 SELECT repeat('abcd',10000);
\d+ test_lz4
select pg_column_compression(txt) from test_lz4;postgres=# select pg_column_compression(txt) from test_lz4;pg_column_compression 
-----------------------lz4
(1 row)drop table if exists test;
CREATE TABLE test (txt text);
INSERT INTO test SELECT repeat('abcd',10000);
\d+ test
select pg_column_compression(txt) from test;
postgres=# select pg_column_compression(txt) from test;pg_column_compression 
-----------------------lz4
(1 row)

检查 postgis 与 pgrouting 是否可以成功创建

create extension fuzzystrmatch;
create extension pgrouting;
create extension plpgsql;
create extension postgis;
create extension postgis_raster;
create extension postgis_tiger_geocoder;
create extension postgis_topology;postgres=# \dxList of installed extensionsName          | Version |   Schema   |                        Description                         
------------------------+---------+------------+------------------------------------------------------------fuzzystrmatch          | 1.1     | public     | determine similarities and distance between stringspgrouting              | 3.6.0   | public     | pgRouting Extensionplpgsql                | 1.0     | pg_catalog | PL/pgSQL procedural languagepostgis                | 3.4.2   | public     | PostGIS geometry and geography spatial types and functionspostgis_raster         | 3.4.2   | public     | PostGIS raster types and functionspostgis_tiger_geocoder | 3.4.2   | tiger      | PostGIS tiger geocoder and reverse geocoderpostgis_topology       | 3.4.2   | topology   | PostGIS topology spatial types and functions
http://www.dtcms.com/wzjs/83765.html

相关文章:

  • 东莞专业做网站优化企业网络营销的模式有哪些
  • 有哪些网站做简历比较好网络营销平台有哪些?
  • 桐乡 网站建设关键词优化技巧有哪些
  • 专业模板网站设计公司怎么做免费的网站推广
  • 各大网站logo图标seo简单速排名软件
  • 达州做网站河南网站推广公司
  • 网站建设的风格设置合肥seo软件
  • b站推广入口mba智库百度推广助手app下载
  • 沈阳企业制作网站重庆seo整站优化设置
  • 网站是做o2o还是b2c好百度指数批量查询工具
  • 委托广告公司做的网站违法了桂林网站优化
  • 英文网站如何做关键词企业网站建设的作用
  • 减粘装置网站优化外包公司
  • 网站优化企业排名上海关键词自动排名
  • 有模板如何做网站淘宝搜索词排名查询
  • 国外网站排行全国疫情突然又严重了
  • 门户网站建设进一步提升免费推广的网站
  • app大全软件网站推广恶意点击软件怎样使用
  • 企业网站制作收费网络营销课程个人总结3000字
  • 信息网查询seo外包 靠谱
  • wordpress 完整主题下载地址外贸网站谷歌seo
  • 虹口做网站公司怎样注册一个自己的平台
  • 新乡百度关键词优化外包西安seo外包行者seo
  • 深圳市住房城乡建设委门户网站国内推广平台有哪些
  • netbeans做网站百度网盘登录入口网页版
  • 瑜伽网站设计厦门人才网官网招聘
  • 福州市建设工程工料机信息网站今日发生的重大新闻
  • 网站建设方为客户提供使用说明书产品推广计划书怎么写
  • 做电影网站哪个系统好seo技术培训课程
  • 网站是怎样赚钱的seo优化排名