root@pg1 postgresql./con@R_502_6408@ure --prefix=/usr/localpgsql95 withpythonchecking build system type... x86_64pclinuxgnuchecking host system typechecking which template to use linuxchecking whether to build with 64bit integer datetime support yeschecking whether NLS is wanted nochecking for default port number5432 block size8kB segment size1GB WAL block size8kB......
安装使用gmake world 和gmake install-world,带上world关键字会把一些第三方的插件也安装上,建议带上world,如果一开始没有安装上,可以手工在解压缩目录下的contrib目录下执行make&&make install
$ initdb D $PGDATA E UTF8 localeC U postgres WThe 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 "C" default text search con@R_502_6408@uration will be set to "english".Data page checksums are disabledfixing permissions on existing directory pgdata initdbCould not change permissions of directory "/pgdata"Operation not permitted$ id postgresuid500(postgres gid groups) okcreating subdirectories selecting default max_connections 100selecting default shared_buffers 128MBselecting dynamic shared memory implementation posixcreating con@R_502_6408@uration files creating template1 database pgdatabase/1initializing pg_authid okEnter new superuser passwordEnter it againsetting password initializing dependencies creating system views loading system objects' descriptions ... okcreating collations ... okcreating conversions ... okcreating dictionaries ... oksetting privileges on built-in objects ... okcreating @R_585_4045@ion schema ... okloading PL/pgsql server-side language ... okvacuuming database template1 ... okcopying template1 to template0 ... okcopying template1 to postgres ... oksyncing data to disk ... okWARNING: enabling "trust" authentication for local connectionsYou 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 /pgdata -l logfile start
listen_addresses '*'# what IP address(es) to listen on;# comma-separated list of addresses;# defaults to 'localhost'; use '*' for all# (change requires restart)port # (change requires restart)
$ pg_ctl startserver starting$ LOG database system was shut down at 2016023935 CSTLOGMultixact member wraparound protections are Now enabled database system is ready to accept connections autovacuum launcher started