欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

開源數(shù)據(jù)庫postgreSQL13在麒麟v10sp1源碼安裝過程詳解

 更新時(shí)間:2021年01月14日 08:56:09   作者:PKS生態(tài)服務(wù)平臺  
這篇文章主要介紹了開源數(shù)據(jù)庫postgreSQL13在麒麟v10sp1源碼安裝過程詳解,本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下

一、中標(biāo)麒麟v10sp1在飛騰2000+系統(tǒng)安裝略

二、系統(tǒng)依賴包安裝

[root@ft2000db opt]# yum install bzip*
[root@ft2000db opt]# nkvers
############## Kylin Linux Version #################
Release:
Kylin Linux Advanced Server release V10 (Tercel)

Kernel:
4.19.90-17.ky10.aarch64

Build:
Kylin Linux Advanced Server
release V10 (SP1) /(Tercel)-aarch64-Build04/20200711
#################################################
[root@ft2000db opt] # yum install -y perl-ExtUtils-Embed
[root@ft2000db opt]# yum install -y flex
root@ft2000db opt]# yum install -y bison
root@ft2000db opt]# yum install -y readline-devel
root@ft2000db opt]# yum install -y zlib-devel
root@ft2000db opt]# yum install -y openssl-devel
root@ft2000db opt]# yum install -y pam-devel
root@ft2000db opt]# yum install -y libxml2-devel
root@ft2000db opt]# yum install -y libxslt-devel
root@ft2000db opt]# yum install -y openldap-devel
root@ft2000db opt]# yum install -y python-devel
root@ft2000db opt]# yum install -y gcc-c++
root@ft2000db opt]# yum install -y libssh2-devel

下載安裝軟件及創(chuàng)建安裝目錄

[root@ft2000db opt]# wget http://ftp.postgresql.org/pub/source/v13.1/postgresql-13.1.tar.bz2
[root@ft2000db opt]# tar xjvf postgresql-13.1.tar.bz2
[root@ft2000db opt]# cd postgresql-13.1/
[root@ft2000db postgresql-13.1]# mkdir -p /opt/pgsql
[root@ft2000db postgresql-13.1]# ./configure --prefix=/opt/pgsql
................................................................
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating src/Makefile.global
config.status: creating src/include/pg_config.h
config.status: creating src/include/pg_config_ext.h
config.status: creating src/interfaces/ecpg/include/ecpg_config.h
config.status: linking src/backend/port/tas/dummy.s to src/backend/port/tas.s
config.status: linking src/backend/port/posix_sema.c to src/backend/port/pg_sema.c
config.status: linking src/backend/port/sysv_shmem.c to src/backend/port/pg_shmem.c
config.status: linking src/include/port/linux.h to src/include/pg_config_os.h
config.status: linking src/makefiles/Makefile.linux to src/Makefile.port

[root@ft2000db postgresql-13.1]# gmake //這里編譯時(shí)間大約30分鐘,如果失敗一般都是系統(tǒng)依賴包原因,根據(jù)提示解決
.............................................................................................................

gmake[2]: 離開目錄“/opt/postgresql-13.1/src/test/isolation”
gmake -C test/perl all
gmake[2]: 進(jìn)入目錄“/opt/postgresql-13.1/src/test/perl”
gmake[2]: 對“all”無需做任何事。
gmake[2]: 離開目錄“/opt/postgresql-13.1/src/test/perl”
gmake[1]: 離開目錄“/opt/postgresql-13.1/src”
gmake -C config all
gmake[1]: 進(jìn)入目錄“/opt/postgresql-13.1/config”
gmake[1]: 對“all”無需做任何事。
gmake[1]: 離開目錄“/opt/postgresql-13.1/config”
All of PostgreSQL successfully made. Ready to install.

[root@ft2000db postgresql-13.1]#gmake install

..........................................................................................

gmake[1]: 離開目錄“/opt/postgresql-13.1/src”
gmake -C config install
gmake[1]: 進(jìn)入目錄“/opt/postgresql-13.1/config”
/usr/bin/mkdir -p '/opt/pgsql/lib/pgxs/config'
/usr/bin/install -c -m 755 ./install-sh '/opt/pgsql/lib/pgxs/config/install-sh'
/usr/bin/install -c -m 755 ./missing '/opt/pgsql/lib/pgxs/config/missing'
gmake[1]: 離開目錄“/opt/postgresql-13.1/config”
PostgreSQL installation complete.

三、檢查安裝的版本

[root@ft2000db postgresql-13.1]# /opt/pgsql/bin/postgres --version
postgres (PostgreSQL) 13.1

創(chuàng)建用戶和組

[root@ft2000db postgresql-13.1]# groupadd -g 1002 postgres
[root@ft2000db postgresql-13.1]# useradd -g 1002 -u 1002 postgres
[root@ft2000db postgresql-13.1]# passwd postgres
[root@ft2000db postgresql-13.1]# chown -R postgres:postgres /opt/
[root@ft2000db postgresql-13.1]# chmod -R 775 /opt/

配置環(huán)境變量

[postgres@ft2000db ~]$ cat .bash_profile
# Source /root/.bashrc if user has one
[ -f ~/.bashrc ] && . ~/.bashrc

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH

PATH=/opt/pgsql/bin:$PATH
export PATH
LD_LIBRARY_PATH=/opt/pgsql/lib
export LD_LIBRARY_PATH

初始化數(shù)據(jù)庫

[postgres@ft2000db ~]$ mkdir -p /opt/pgsql/data
[postgres@ft2000db ~]$ initdb -D /opt/pgsql/data
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "zh_CN.UTF-8".
The default database encoding has accordingly been set to "UTF8".
initdb: could not find suitable text search configuration for locale "zh_CN.UTF-8"
The default text search configuration will be set to "simple".

Data page checksums are disabled.

fixing permissions on existing directory /opt/pgsql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Asia/Shanghai
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

initdb: warning: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

pg_ctl -D /opt/pgsql/data -l logfile start

啟動數(shù)據(jù)庫

[postgres@ft2000db ~]$ pg_ctl -D /opt/pgsql/data start
waiting for server to start....2020-11-20 16:01:05.881 CST [34826] LOG: starting PostgreSQL 13.1 on aarch64-unknown-linux-gnu, compiled by gcc (GCC) 7.3.0, 64-bit
2020-11-20 16:01:05.882 CST [34826] LOG: listening on IPv6 address "::1", port 5432
2020-11-20 16:01:05.882 CST [34826] LOG: listening on IPv4 address "127.0.0.1", port 5432
2020-11-20 16:01:05.882 CST [34826] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432"
2020-11-20 16:01:05.884 CST [34827] LOG: database system was shut down at 2020-11-20 16:00:27 CST
2020-11-20 16:01:05.887 CST [34826] LOG: database system is ready to accept connections
done
server started

登錄數(shù)據(jù)庫

[postgres@ft2000db ~]$ psql -p 5432
psql (13.1)
type "help" for help.

postgres=#

到此postgresql數(shù)據(jù)庫安裝完畢。

到此這篇關(guān)于開源數(shù)據(jù)庫postgreSQL13在麒麟v10sp1源碼安裝過程詳解的文章就介紹到這了,更多相關(guān)postgreSQL13在麒麟v10sp1源碼安裝內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!

相關(guān)文章

  • 淺談PostgreSQL中的孤兒文件用法(orphaned data files)

    淺談PostgreSQL中的孤兒文件用法(orphaned data files)

    這篇文章主要介紹了淺談PostgreSQL中的孤兒文件用法(orphaned data files),具有很好的參考價(jià)值,希望對大家有所幫助。一起跟隨小編過來看看吧
    2021-01-01
  • PostgreSQL建立自增主鍵的2種方法總結(jié)

    PostgreSQL建立自增主鍵的2種方法總結(jié)

    這篇文章主要給大家介紹了關(guān)于PostgreSQL建立自增主鍵的2種方法,PostgreSQL主鍵自增是一種自動增長的機(jī)制,可以為表中的每一行記錄分配唯一的標(biāo)識符,需要的朋友可以參考下
    2023-09-09
  • PostgreSQL 存儲過程的進(jìn)階講解(含游標(biāo)、錯誤處理、自定義函數(shù)、事務(wù))

    PostgreSQL 存儲過程的進(jìn)階講解(含游標(biāo)、錯誤處理、自定義函數(shù)、事務(wù))

    PL/pgSQL 游標(biāo)允許我們封裝一個(gè)查詢,然后每次處理結(jié)果集中的一條記錄,這篇文章主要介紹了PostgreSQL 存儲過程的進(jìn)階介紹(含游標(biāo)、錯誤處理、自定義函數(shù)、事務(wù)),需要的朋友可以參考下
    2023-03-03
  • 詳解如何優(yōu)化在PostgreSQL中對于日期范圍的查詢

    詳解如何優(yōu)化在PostgreSQL中對于日期范圍的查詢

    在 PostgreSQL 中,處理日期范圍的查詢是常見的操作,然而,如果不進(jìn)行適當(dāng)?shù)膬?yōu)化,這些查詢可能會導(dǎo)致性能問題,特別是在處理大型數(shù)據(jù)集時(shí),本文章將詳細(xì)討論如何優(yōu)化在 PostgreSQL 中對于日期范圍的查詢,需要的朋友可以參考下
    2024-07-07
  • postgresql 如何查看pg_wal目錄下xlog文件總大小

    postgresql 如何查看pg_wal目錄下xlog文件總大小

    這篇文章主要介紹了postgresql 如何查看pg_wal目錄下xlog文件總大小的操作,具有很好的參考價(jià)值,希望對大家有所幫助。一起跟隨小編過來看看吧
    2021-01-01
  • PostgreSQL實(shí)現(xiàn)定期備份的方法

    PostgreSQL實(shí)現(xiàn)定期備份的方法

    PostgreSQL定期備份功能可以自動備份數(shù)據(jù)庫,避免了手動備份過程中可能發(fā)生的錯誤,也極大地減輕了管理員的工作壓力,所以本文將給大家介紹一下PostgreSQL實(shí)現(xiàn)定期備份的方法,需要的朋友可以參考下
    2024-03-03
  • Postgre數(shù)據(jù)庫Insert 、Query性能優(yōu)化詳解

    Postgre數(shù)據(jù)庫Insert 、Query性能優(yōu)化詳解

    這篇文章主要介紹了Postgre數(shù)據(jù)庫Insert和Query性能優(yōu)化的步驟,大家可以參考使用
    2013-11-11
  • 基于postgreSql 常用查詢小結(jié)

    基于postgreSql 常用查詢小結(jié)

    這篇文章主要介紹了基于postgreSql 常用查詢小結(jié),具有很好的參考價(jià)值,希望對大家有所幫助。一起跟隨小編過來看看吧
    2021-01-01
  • PostgreSQL psql 常用命令總結(jié)

    PostgreSQL psql 常用命令總結(jié)

    psql是PostgreSQL的一個(gè)命令行交互式客戶端工具,它具有非常豐富的功能,類似于Oracle的命令行工具sqlplus,本文給大家總結(jié)下PostgreSQL 中常用 psql 常用命令以便后續(xù)查閱,感興趣的朋友跟隨小編一起看看吧
    2023-07-07
  • PostgreSQL 遠(yuǎn)程連接配置操作

    PostgreSQL 遠(yuǎn)程連接配置操作

    這篇文章主要介紹了PostgreSQL 遠(yuǎn)程連接配置操作,具有很好的參考價(jià)值,希望對大家有所幫助。一起跟隨小編過來看看吧
    2021-01-01

最新評論