您好,登錄后才能下訂單哦!
?
[root@localhost?~]#?hostnamectl?set-hostname?ygg
檢查:
?
[root@localhost?~]#?hostnamectl
???Static?hostname:?ygg
?????????Icon?name:?computer-vm
???????????Chassis:?vm
????????Machine?ID:?19e8c6b6164b453b8816e1a002badeec
???????????Boot?ID:?b9793f1a2e8c4dbcbf99f9f011563fe6
????Virtualization:?vmware
??Operating?System:?Red?Hat?Enterprise?Linux?Server?7.2?(Maipo)
???????CPE?OS?Name:?cpe:/o:redhat:enterprise_linux:7.2:GA:server
????????????Kernel:?Linux?3.10.0-327.el7.x86_64
??????Architecture:?x86-64
[root@localhost?~]#
?
yum?install?gcc*?gcc-c++*?zlib-devel*?readline-devel*?perl-ExtUtils-Embed*?pam-devel*?libxml2-devel*?libxslt-devel*?openldap-devel*?python-devel*?openssl-devel*?cmake*?readline*?flex*?bison*?tcl*?-y
?
vi?/etc/sysctl.conf
#add
kernel.shmmax?=?68719476736??????????????????#最大共享內(nèi)存段大?。J(rèn))
kernel.shmall?=?4294967296???????????????????????#可以使用的共享內(nèi)存的總量(默認(rèn))
kernel.shmmni?=?4096?????????????????????????????#整個(gè)系統(tǒng)共享內(nèi)存段的最大數(shù)目
kernel.sem?=?50100?64128000?50100?1280???????????#每個(gè)信號(hào)對(duì)象集的最大信號(hào)對(duì)象數(shù);系統(tǒng)范圍內(nèi)
?????????????????????????????????????????????????#最大信號(hào)對(duì)象數(shù);每個(gè)信號(hào)對(duì)象支持的最大操作數(shù);
?????????????????????????????????????????????????#系統(tǒng)范圍內(nèi)最大信號(hào)對(duì)象集數(shù)
fs.file-max?=?7672460????????????????????????????#文件句柄的最大數(shù)量,文件句柄設(shè)置表示在linux系統(tǒng)中可以打開的文件數(shù)量
net.ipv4.ip_local_port_range?=?9000?65000????????#應(yīng)用程序可使用的IPv4端口范圍
net.core.rmem_default?=?1048576??????????????????#套接字接收緩沖區(qū)大小的缺省值
net.core.wmem_default?=?262144???????????????????#套接字發(fā)送緩沖區(qū)大小的缺省值
net.core.wmem_max?=?1048576??????????????????????#套接字發(fā)送緩沖區(qū)大小的最大值
內(nèi)核參數(shù)生效:
sysctl?-p
[root@ygg?soft]#?useradd?postgresql
[root@ygg?soft]#?passwd?postgresql
[root@ygg?soft]#?su?-?postgresql
[postgresql@ygg?~]$?cd?/soft/
postgresql-10.3.tar.gz??rlwrap-0.43rlwrap-0.43.tar.gz
[postgresql@ygg?soft]$?gunzip?postgresql-10.3.tar.gz
[postgresql@ygg?soft]$?tar?-xf?postgresql-10.3.tar
[postgresql@ygg?soft]$?cd?postgresql-10.3/
[postgresql@ygg?postgresql-10.3]$?ll
total?672
-rw-r--r--.1?postgresql?postgresql????457?Feb?27??2018?aclocal.m4
drwxrwxr-x.2?postgresql?postgresql???4096?Feb?27??2018?config???源碼安裝的配置腳本
-rwxr-xr-x.1?postgresql?postgresql?498962?Feb?272018?configure
-rw-r--r--.1?postgresql?postgresql??76915?Feb?27??2018?configure.in
drwxrwxr-x.?55?postgresql?postgresql???4096?Feb?27??2018?contrib???已打包到PG源碼中的第三方貢獻(xiàn)的插件源碼
-rw-r--r--.1?postgresql?postgresql???1192?Feb?27??2018?COPYRIGHT
drwxrwxr-x.3?postgresql?postgresql????101?Feb?27??2018?doc???????文檔
-rw-r--r--.1?postgresql?postgresql???3638?Feb?27??2018?GNUmakefile.in
-rw-r--r--.1?postgresql?postgresql????284?Feb?27??2018?HISTORY?????版本變更的歷史記錄
-rw-r--r--.1?postgresql?postgresql??71584?Feb?27??2018?INSTALL?????安裝說明
-rw-r--r--.1?postgresql?postgresql???1682?Feb?27??2018?Makefile
-rw-r--r--.1?postgresql?postgresql???1212?Feb?27??2018?README
drwxrwxr-x.?16?postgresql?postgresql???4096?Feb?272018?src???????源代碼
?
[postgresql@ygg?postgresql-10.3]$?./configure?--help
`configure'?configures?PostgreSQL?10.3?to?adapt?to?many?kinds?of?systems.
Usage:?./configure?[OPTION]...?[VAR=VALUE]...
To?assign?environment?variables?(e.g.,?CC,?CFLAGS...),?specify?them?as
VAR=VALUE.??See?below?for?descriptions?of?some?of?the?useful?variables.
Defaults?for?the?options?are?specified?in?brackets.
Configuration:
??-h,?--help??????????????display?this?help?and?exit
??????--help=short????????display?options?specific?to?this?package
??????--help=recursive????display?the?short?help?of?all?the?included?packages
??-V,?--version???????????display?version?information?and?exit
??-q,?--quiet,?--silent???do?not?print?`checking?...'?messages
??????--cache-file=FILE???cache?test?results?in?FILE?[disabled]
??-C,?--config-cache??????alias?for?`--cache-file=config.cache'
??-n,?--no-create?????????do?not?create?output?files
??????--srcdir=DIR????????find?the?sources?in?DIR?[configure?dir?or?`..']
Installation?directories:
??--prefix=PREFIX?????????install?architecture-independent?files?in?PREFIX
??????????????????????????[/usr/local/pgsql]
??--exec-prefix=EPREFIX???install?architecture-dependent?files?in?EPREFIX
??????????????????????????[PREFIX]
By?default,?`make?install'?will?install?all?the?files?in
`/usr/local/pgsql/bin',?`/usr/local/pgsql/lib'?etc.??You?can?specify
an?installation?prefix?other?than?`/usr/local/pgsql'?using?`--prefix',
for?instance?`--prefix=$HOME'.
For?better?control,?use?the?options?below.
Fine?tuning?of?the?installation?directories:
??--bindir=DIR????????????user?executables?[EPREFIX/bin]
??--sbindir=DIR???????????system?admin?executables?[EPREFIX/sbin]
??--libexecdir=DIR????????program?executables?[EPREFIX/libexec]
??--sysconfdir=DIR????????read-only?single-machine?data?[PREFIX/etc]
??--sharedstatedir=DIR????modifiable?architecture-independent?data?[PREFIX/com]
??--localstatedir=DIR?????modifiable?single-machine?data?[PREFIX/var]
??--libdir=DIR????????????object?code?libraries?[EPREFIX/lib]
??--includedir=DIR????????C?header?files?[PREFIX/include]
??--oldincludedir=DIR?????C?header?files?for?non-gcc?[/usr/include]
??--datarootdir=DIR???????read-only?arch.-independent?data?root?[PREFIX/share]
??--datadir=DIR???????????read-only?architecture-independent?data?[DATAROOTDIR]
??--infodir=DIR???????????info?documentation?[DATAROOTDIR/info]
??--localedir=DIR?????????locale-dependent?data?[DATAROOTDIR/locale]
??--mandir=DIR????????????man?documentation?[DATAROOTDIR/man]
??--docdir=DIR????????????documentation?root?[DATAROOTDIR/doc/postgresql]
??--htmldir=DIR???????????html?documentation?[DOCDIR]
??--dvidir=DIR????????????dvi?documentation?[DOCDIR]
??--pdfdir=DIR????????????pdf?documentation?[DOCDIR]
??--psdir=DIR?????????????ps?documentation?[DOCDIR]
System?types:
??--build=BUILD?????configure?for?building?on?BUILD?[guessed]
??--host=HOST???????cross-compile?to?build?programs?to?run?on?HOST?[BUILD]
Optional?Features:
??--disable-option-checking??ignore?unrecognized?--enable/--with?options
??--disable-FEATURE???????do?not?include?FEATURE?(same?as?--enable-FEATURE=no)
??--enable-FEATURE[=ARG]??include?FEATURE?[ARG=yes]
??--disable-integer-datetimes
??????????????????????????obsolete?option,?no?longer?supported
??--enable-nls[=LANGUAGES]
??????????????????????????enable?Native?Language?Support
??--disable-rpath?????????do?not?embed?shared?library?search?path?in
??????????????????????????executables
??--disable-spinlocks?????do?not?use?spinlocks
??--disable-atomics???????do?not?use?atomic?operations
??--disable-strong-random?do?not?use?a?strong?random?number?source
??--enable-debug??????????build?with?debugging?symbols?(-g)
??--enable-profiling??????build?with?profiling?enabled
??--enable-coverage???????build?with?coverage?testing?instrumentation
??--enable-dtrace?????????build?with?DTrace?support
??--enable-tap-tests??????enable?TAP?tests?(requires?Perl?and?IPC::Run)
??--enable-depend?????????turn?on?automatic?dependency?tracking
??--enable-cassert????????enable?assertion?checks?(for?debugging)
??--disable-thread-safety?disable?thread-safety?in?client?libraries
??--disable-largefile?????omit?support?for?large?files
??--disable-float4-byval??disable?float4?passed?by?value
??--disable-float8-byval??disable?float8?passed?by?value
Optional?Packages:
??--with-PACKAGE[=ARG]????use?PACKAGE?[ARG=yes]
??--without-PACKAGE???????do?not?use?PACKAGE?(same?as?--with-PACKAGE=no)
??--with-extra-version=STRING
??????????????????????????append?STRING?to?version
??--with-template=NAME????override?operating?system?template
??--with-includes=DIRS????look?for?additional?header?files?in?DIRS
??--with-libraries=DIRS???look?for?additional?libraries?in?DIRS
??--with-libs=DIRS????????alternative?spelling?of?--with-libraries
??--with-pgport=PORTNUM???set?default?port?number?[5432]
??--with-blocksize=BLOCKSIZE
??????????????????????????set?table?block?size?in?kB?[8]
??--with-segsize=SEGSIZE??set?table?segment?size?in?GB?[1]
??--with-wal-blocksize=BLOCKSIZE
??????????????????????????set?WAL?block?size?in?kB?[8]
??--with-wal-segsize=SEGSIZE
??????????????????????????set?WAL?segment?size?in?MB?[16]
??--with-CC=CMD???????????set?compiler?(deprecated)
??--with-icu??????????????build?with?ICU?support
??--with-tcl??????????????build?Tcl?modules?(PL/Tcl)
??--with-tclconfig=DIR????tclConfig.sh?is?in?DIR
??--with-perl?????????????build?Perl?modules?(PL/Perl)
??--with-python???????????build?Python?modules?(PL/Python)
??--with-gssapi???????????build?with?GSSAPI?support
??--with-krb-srvnam=NAME??default?service?principal?name?in?Kerberos?(GSSAPI)
??????????????????????????[postgres]
??--with-pam??????????????build?with?PAM?support
??--with-bsd-auth?????????build?with?BSD?Authentication?support
??--with-ldap?????????????build?with?LDAP?support
??--with-bonjour??????????build?with?Bonjour?support
??--with-openssl??????????build?with?OpenSSL?support
??--with-selinux??????????build?with?SELinux?support
??--with-systemd??????????build?with?systemd?support
??--without-readline??????do?not?use?GNU?Readline?nor?BSD?Libedit?for?editing
??--with-libedit-preferred
??????????????????????????prefer?BSD?Libedit?over?GNU?Readline
??--with-uuid=LIB?????????build?contrib/uuid-ossp?using?LIB?(bsd,e2fs,ossp)
??--with-ossp-uuid????????obsolete?spelling?of?--with-uuid=ossp
??--with-libxml???????????build?with?XML?support
??--with-libxslt??????????use?XSLT?support?when?building?contrib/xml2
??--with-system-tzdata=DIR
??????????????????????????use?system?time?zone?data?in?DIR
??--without-zlib??????????do?not?use?Zlib
??--with-gnu-ld???????????assume?the?C?compiler?uses?GNU?ld?[default=no]
Some?influential?environment?variables:
??CCC?compiler?command
??CFLAGSC?compiler?flags
??LDFLAGSlinker?flags,?e.g.?-L<lib?dir>?if?you?have?libraries?in?a
??????????????nonstandard?directory?<lib?dir>
??LIBSlibraries?to?pass?to?the?linker,?e.g.?-l<library>
??CPPFLAGS(Objective)?C/C++?preprocessor?flags,?e.g.?-I<include?dir>?if
??????????????you?have?headers?in?a?nonstandard?directory?<include?dir>
??CPPC?preprocessor
??PKG_CONFIGpath?to?pkg-config?utility
??PKG_CONFIG_PATH
??????????????directories?to?add?to?pkg-config's?search?path
??PKG_CONFIG_LIBDIR
??????????????path?overriding?pkg-config's?built-in?search?path
??ICU_CFLAGSC?compiler?flags?for?ICU,?overriding?pkg-config
??ICU_LIBSlinker?flags?for?ICU,?overriding?pkg-config
??LDFLAGS_EXextra?linker?flags?for?linking?executables?only
??LDFLAGS_SLextra?linker?flags?for?linking?shared?libraries?only
Use?these?variables?to?override?the?choices?made?by?`configure'?or?to?help
it?to?find?libraries?and?programs?with?nonstandard?names/locations.
Report?bugs?to?<pgsql-bugs@postgresql.org>.
[postgresql?@?ygg?postgresql-10.3]?$?./configure?--help
`configure'配置PostgreSQL?10.3以適應(yīng)多種系統(tǒng)。
用法:./?configure?[OPTION]?...?[VAR?=?VALUE]?...
要分配環(huán)境變量(例如CC,CFLAGS?...),請(qǐng)將它們指定為
VAR?=?VALUE。有關(guān)某些有用變量的說明,請(qǐng)參見下文。
選項(xiàng)的默認(rèn)值在方括號(hào)中指定。
組態(tài):
??-h,--help顯示此幫助并退出
??????--help?=簡(jiǎn)短顯示此軟件包的選項(xiàng)
??????--help?=?recursive顯示所有包含的軟件包的簡(jiǎn)短幫助
??-V,--version顯示版本信息并退出
??-q,-quiet,-silent不打印“檢查中...”消息
??????--cache-file?=?FILE緩存測(cè)試結(jié)果在FILE中[已禁用]
??-C,“-cache-file?=?config.cache”的--config-cache別名
??-n,--no-create不創(chuàng)建輸出文件
??????--srcdir?=?DIR在DIR中找到源[configure?dir或`..']
安裝目錄:
??--prefix?=?PREFIX在PREFIX中安裝與體系結(jié)構(gòu)無關(guān)的文件
??????????????????????????[/?usr?/?local?/?pgsql]
??--exec-prefix?=?EPREFIX在EPREFIX中安裝與體系結(jié)構(gòu)相關(guān)的文件
??????????????????????????[字首]
默認(rèn)情況下,“?make?install”將安裝所有文件
/?usr?/?local?/?pgsql?/?bin,/?usr?/?local?/?pgsql?/?lib等。您可以指定
使用`--prefix'的`/?usr?/?local?/?pgsql'以外的安裝前綴,
例如`--prefix?=?$?HOME'。
為了更好地控制,請(qǐng)使用以下選項(xiàng)。
微調(diào)安裝目錄:
??--bindir?=?DIR????????????????用戶可執(zhí)行文件[EPREFIX?/?bin]
??--sbindir?=?DIR???????????????系統(tǒng)管理員可執(zhí)行文件[EPREFIX?/?sbin]
??--libexecdir?=?DIR????????????程序可執(zhí)行文件[EPREFIX?/?libexec]
??--sysconfdir?=?DIR????????????只讀單機(jī)數(shù)據(jù)[PREFIX?/?etc]
??--sharedstatedir?=?DIR????????可修改的體系結(jié)構(gòu)獨(dú)立數(shù)據(jù)[PREFIX?/?com]
??--localstatedir?=?DIR?????????可修改的單機(jī)數(shù)據(jù)[PREFIX?/?var]
??--libdir?=?DIR????????????????目標(biāo)代碼庫[EPREFIX?/?lib]
??--includedir?=?DIR????????????C頭文件[PREFIX?/?include]
??--oldincludedir?=非gcc的DIR???C頭文件[/?usr?/?include]
??--datarootdir?=?DIR???????????只讀的獨(dú)立于拱的數(shù)據(jù)根[PREFIX?/?share]
??--datadir?=?DIR???????????????與架構(gòu)無關(guān)的只讀數(shù)據(jù)[DATAROOTDIR]
??--infodir?=?DIR???????????????信息文檔[DATAROOTDIR?/?info]
??--localedir?=?DIR?????????????依賴于語言環(huán)境的數(shù)據(jù)[DATAROOTDIR?/?locale]
??--mandir?=?DIR????????????????手冊(cè)文件[DATAROOTDIR?/?man]
??--docdir?=?DIR????????????????文檔根[DATAROOTDIR?/?doc?/?postgresql]
??--htmldir?=?DIR???????????????html文檔[DOCDIR]
??--dvidir?=?DIR????????????????dvi文檔[DOCDIR]
??--pdfdir?=?DIR????????????????pdf文檔[DOCDIR]
??--psdir?=?DIR?????????????????ps文檔[DOCDIR]
系統(tǒng)類型:
??--build?=?BUILD???????????????配置為在BUILD上構(gòu)建[猜測(cè)]
??--host?=?HOST?????????????????交叉編譯以構(gòu)建要在HOST上運(yùn)行的程序[BUILD]
可選功能:
??--disable-option-checking?????忽略無法識(shí)別的--enable?/-with?options
??--disable-FEATURE?????????????不包含F(xiàn)EATURE(與--enable-FEATURE?=?no相同)
??--enable-FEATURE?[=?ARG]??????包括功能[ARG?=?yes]
??--disable-integer-datetimes???過時(shí)的選項(xiàng),不再受支持
??--enable-nls?[=?LANGUAGES]????啟用母語支持
??--disable-rpath???????????????不將共享庫搜索路徑嵌入到可執(zhí)行文件
??--disable-spinlocks???????????不使用自旋鎖
??--disable-atomics?????????????不使用原子操作
??--disable-strong-random???????不使用強(qiáng)隨機(jī)數(shù)源
??--enable-debug????????????????帶有調(diào)試符號(hào)的構(gòu)建(-g)
??--enable-profiling????????????構(gòu)建并啟用了性能分析使用覆蓋率測(cè)試工具啟用覆蓋范圍構(gòu)建
??--enable-dtrace???????????????帶有DTrace支持的構(gòu)建
??--enable-tap-tests????????????啟用TAP測(cè)試(需要Perl和IPC?::?Run)
??--enable-depend???????????????打開自動(dòng)依賴性跟蹤
??--enable-cassert??????????????啟用斷言檢查(用于調(diào)試)
??--disable-thread-safety???????禁用客戶端庫中的線程安全
??--disable-largefile???????????省略對(duì)大文件的支持
??--disable-float4-byval????????禁用按值傳遞的float4
??--disable-float8-byval????????禁用由值傳遞的float8
可選軟件包:
??--with-PACKAGE?[=?ARG]????????使用包[ARG?=?yes]
??--without-PACKAGE?????????????不要使用PACKAGE(與--with-PACKAGE?=?no相同)
??--with-extra-version?=?STRING?將STRING附加到版本
??--with-template?=?NAME????????覆蓋操作系統(tǒng)模板
??--with-includes?=?DIRS????????在DIRS中查找其他頭文件
??--with-libraries?=?DIRS???????在DIRS中尋找其他庫
??--with-libs?=?DIRS????????????--with-libraries的替代拼寫
??--with-pgport?=?PORTNUM???????設(shè)置默認(rèn)端口號(hào)[5432]
??--with-blocksize?=?blocksize??將表塊大小設(shè)置為kB?[8]
??--with-segsize?=?SEGSIZE??????以GB為單位設(shè)置表段的大小[1]
??--with-wal-blocksize=blocksize???在kB中設(shè)置WAL塊大小[8]
??--with-wal-segsize?=?SEGSIZE??以MB為單位設(shè)置WAL段大小[16]
??--with-CC?=?CMD???????????????設(shè)置編譯器(不建議使用)
??--with-icu????????????????????在ICU支持下進(jìn)行構(gòu)建
??--with-tcl????????????????????構(gòu)建Tcl模塊(PL?/?Tcl)
??--with-tclconfig?=?DIR????????tclConfig.sh在DIR中
??--with-perl???????????????????構(gòu)建Perl模塊(PL?/?Perl)
??--with-python?????????????????構(gòu)建Python模塊(PL?/?Python)
??--with-gssapi?????????????????構(gòu)建具有GSSAPI支持
??--with-krb-srvnam?=?NAME??????Kerberos(GSSAPI)中的默認(rèn)服務(wù)主體名稱[postgres]
??--with-pam????????????????????建立并支持PAM
??--with-bsd-auth???????????????構(gòu)建具有BSD身份驗(yàn)證支持
??--with-ldap???????????????????建立LDAP支持
??--with-bonjour????????????????在Bonjour支持下進(jìn)行構(gòu)建
??--with-openssl????????????????建立具有OpenSSL支持
??--with-selinux????????????????構(gòu)建帶有SELinux支持
??--with-systemd????????????????構(gòu)建并具有systemd支持
??--without-readline????????????不要使用GNU?Readline或BSD?Libedit進(jìn)行編輯
??--with-libedit-preferred??????比GNU?Readline更喜歡BSD?Libedit
??--with-uuid?=?LIB?????????????使用LIB(bsd,e2fs,ossp)構(gòu)建contrib?/?uuid-ossp
??--with-ossp-uuid??????????????--with-uuid?=?ossp的過時(shí)拼寫
??--with-libxml?????????????????建立XML支持
??--with-libxslt????????????????在構(gòu)建contrib?/?xml2時(shí)使用XSLT支持
??--with-system-tzdata?=?DIR????在DIR中使用系統(tǒng)時(shí)區(qū)數(shù)據(jù)
??--without-zlib????????????????不要使用Zlib
??--with-gnu-ld?????????????????假定C編譯器使用GNU?ld?[default?=?no]
一些有影響力的環(huán)境變量:
??CC????????????????????????????C編譯器命令
??CFLAGS????????????????????????C編譯器標(biāo)志
??LDFLAGS???????????????????????鏈接器標(biāo)志,例如-L?<lib?dir>(如果您在非標(biāo)準(zhǔn)目錄<lib?dir>LIBS庫傳遞給鏈接器,例如-l?<library>
??CPPFLAGS?????????????????????(客觀)C?/?C?++預(yù)處理器標(biāo)志,例如,如果-I?<include?dir>您在非標(biāo)準(zhǔn)目錄<include?dir>中具有標(biāo)題
??CPP???????????????????????????C預(yù)處理器
??PKG_CONFIG????????????????????到pkg-config實(shí)用程序的路徑
??PKG_CONFIG_PATH???????????????要添加到pkg-config的搜索路徑的目錄
??PKG_CONFIG_LIBDIR?????????????覆蓋pkg-config的內(nèi)置搜索路徑的路徑
??ICU_CFLAGS????????????????????ICU的C編譯器標(biāo)志,覆蓋pkg-config
??ICU的ICU_LIBS?????????????????鏈接器標(biāo)志,覆蓋pkg-config
??LDFLAGS_EX????????????????????額外的鏈接器標(biāo)志,僅用于鏈接可執(zhí)行文件
??LDFLAGS_SL????????????????????額外的鏈接器標(biāo)志,僅用于鏈接共享庫
使用這些變量來覆蓋`configure'所做的選擇或提供幫助
查找具有非標(biāo)準(zhǔn)名稱/位置的庫和程序。
向<pgsql-bugs@postgresql.org>報(bào)告錯(cuò)誤。
./configure?--prefix=/home/postgresql/postgresql10/prefix?--exec-prefix=/home/postgresql/postgresql10/execprefix?--htmldir=/home/postgresql/postgresql10/html?--with-pgport=1922??--with-openssl?--with-perl?--with-tcl?--with-python?--with-pam?--without-ldap?--with-libxml?--with-libxslt?--enable-thread-safety?--with-wal-blocksize=16?--with-blocksize=8?--enable-dtrace?--enable-debug
?
完成不報(bào)錯(cuò)如下:
如果報(bào)錯(cuò)缺少依賴包,根據(jù)提示yum相關(guān)包,重新配置
gmake?world??????????????--包括第三方插件全部編譯
?結(jié)果如下:
?
gmake?check-world????--這個(gè)需要使用普通用戶執(zhí)行,可選,耗時(shí)較長(zhǎng)
?結(jié)果如下:
gmake?install-world????--?包括第三方插件全部安裝
根據(jù)當(dāng)前配置安裝完成后,相關(guān)目錄結(jié)構(gòu)如下:
?
[postgresql@ygg?~]$?tree?-d
.
`--?postgresql10
????|--?data
????|--?execprefix
????|???|--?bin
????|???`--?lib
????|???????|--?pgxs
????|???????|???|--?config
????|???????|???`--?src
????|???????|???????|--?makefiles
????|???????|???????`--?test
????|???????|???????????`--?regress
????|???????`--?pkgconfig
????|--?html
????|???`--?html
????`--?prefix
????????|--?include
????????|???|--?informix
????????|???|???`--?esql
????????|???|--?internal
????????|???|???`--?libpq
????????|???|--?libpq
????????|???`--?server
????????|???????|--?access
????????|???????|--?bootstrap
????????|???????|--?catalog
????????|???????|--?commands
????????|???????|--?common
????????|???????|--?datatype
????????|???????|--?executor
????????|???????|--?fe_utils
????????|???????|--?foreign
????????|???????|--?lib
????????|???????|--?libpq
????????|???????|--?mb
????????|???????|--?nodes
????????|???????|--?optimizer
????????|???????|--?parser
????????|???????|--?port
????????|???????|???|--?atomics
????????|???????|???|--?win32
????????|???????|???|???|--?arpa
????????|???????|???|???|--?netinet
????????|???????|???|???`--?sys
????????|???????|???`--?win32_msvc
????????|???????|???????`--?sys
????????|???????|--?portability
????????|???????|--?postmaster
????????|???????|--?regex
????????|???????|--?replication
????????|???????|--?rewrite
????????|???????|--?snowball
????????|???????|???`--?libstemmer
????????|???????|--?statistics
????????|???????|--?storage
????????|???????|--?tcop
????????|???????|--?tsearch
????????|???????|???`--?dicts
????????|???????`--?utils
????????`--?share
????????????|--?doc
????????????|???`--?extension
????????????|--?extension
????????????|--?man
????????????|???|--?man1
????????????|???|--?man3
????????????|???`--?man7
????????????|--?timezone
????????????|???|--?Africa
????????????|???|--?America
????????????|???|???|--?Argentina
????????????|???|???|--?Indiana
????????????|???|???|--?Kentucky
????????????|???|???`--?North_Dakota
????????????|???|--?Antarctica
????????????|???|--?Arctic
????????????|???|--?Asia
????????????|???|--?Atlantic
????????????|???|--?Australia
????????????|???|--?Brazil
????????????|???|--?Canada
????????????|???|--?Chile
????????????|???|--?Etc
????????????|???|--?Europe
????????????|???|--?Indian
????????????|???|--?Mexico
????????????|???|--?Pacific
????????????|???`--?US
????????????|--?timezonesets
????????????`--?tsearch_data
?一般的,清除安裝目錄,再次安裝可以嘗試重新指定路徑(安裝時(shí)指定安裝目錄)?在安裝的時(shí)候加 prefix ,不然的話雖然用find命令可以找出一些相關(guān)文件,但是對(duì)于修改了配置,比如加入啟動(dòng)項(xiàng)之類的操作就不好根除?通常只能用find去手動(dòng)清除。所以軟件通常都會(huì)提供uninstall的程序來執(zhí)行卸載操作。
make?-C?src/bin?install
make?-C?src/include?install
make?-C?src/interfaces?install
make?-C?doc?install
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。