亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪問板塊 發(fā)新帖
查看: 8344 | 回復(fù): 5
打印 上一主題 下一主題

初次接觸PostgreSQL,在Linux下安裝遇到問題 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2014-08-26 11:32 |只看該作者 |倒序?yàn)g覽
首先交代下背景:我對(duì)Linux和PostgreSQL的了解基本為0,最近因?yàn)樾枰贚inux安裝一個(gè)軟件,我用putty登陸了Linux服務(wù)器(登錄ID是root),按照這個(gè)軟件的安裝手冊(cè)進(jìn)行安裝。這個(gè)軟件包中包含PostgreSQL,在安裝過程中好像會(huì)自動(dòng)安裝PostgreSQL。
但是安裝過程中報(bào)錯(cuò),生成的log日志如下:

Unarchiving /user2/packs/N12/Setup/insFiles_1408010242/postgres/postgres.tar.gz
The files belonging to this database system will be owned by user "adp_dba".
This user must also own the server process.

The database cluster will be initialized with locale en_US.UTF-8.
The default database encoding has accordingly been set to UTF8.
The default text search configuration will be set to "english".

fixing permissions on existing directory /adpodg/apps/postgres/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 32MB
creating configuration files ... ok
creating template1 database in /adpodg/apps/postgres/data/base/1 ... ok
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok

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

Success. You can now start the database server using:

postgres -D /adpodg/apps/postgres/data
or
pg_ctl -D /adpodg/apps/postgres/data -l logfile start

server starting
Waiting for postgres service to start ...
Unable to start postgres
GSC_FATAL

我按照l(shuí)og的提示,執(zhí)行“postgres -D /adpodg/apps/postgres/data”,然后系統(tǒng)提示:
"root" execution of the PostgreSQL server is not permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromise.  See the documentation for
more information on how to properly start the server.

從字面意思理解,是不是root賬號(hào)不能用戶安裝PostgreSQL? 如果不行,我需要什么賬號(hào),在安裝前需要做哪方面的配置?
因?yàn)榈谝淮谓佑|PostgreSQL,希望能得到通俗易懂的幫助,謝謝各位高手。

論壇徽章:
33
榮譽(yù)會(huì)員
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-04-17 06:23:27操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-04-18 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-04-24 06:20:0015-16賽季CBA聯(lián)賽之天津
日期:2016-05-06 12:46:59
2 [報(bào)告]
發(fā)表于 2014-08-26 13:01 |只看該作者
回復(fù) 1# wyifei2010
不是不能安裝, 是不能啟動(dòng).

基于安全的原因, 所有的服務(wù)都不建議由 root 用戶 啟動(dòng). 你的安裝手冊(cè)上應(yīng)該有說明才對(duì).

   

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2014-08-26 13:35 |只看該作者
本帖最后由 wyifei2010 于 2014-08-26 13:40 編輯

回復(fù) 2# q1208c
是說不能用“root"這個(gè)用戶名安裝,還是說有root權(quán)限的用戶名都不可以


   

論壇徽章:
33
榮譽(yù)會(huì)員
日期:2011-11-23 16:44:17天秤座
日期:2014-08-26 16:18:20天秤座
日期:2014-08-29 10:12:18丑牛
日期:2014-08-29 16:06:45丑牛
日期:2014-09-03 10:28:58射手座
日期:2014-09-03 16:01:17寅虎
日期:2014-09-11 14:24:21天蝎座
日期:2014-09-17 08:33:55IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-04-17 06:23:27操作系統(tǒng)版塊每日發(fā)帖之星
日期:2016-04-18 06:20:00IT運(yùn)維版塊每日發(fā)帖之星
日期:2016-04-24 06:20:0015-16賽季CBA聯(lián)賽之天津
日期:2016-05-06 12:46:59
4 [報(bào)告]
發(fā)表于 2014-08-26 13:57 |只看該作者
回復(fù) 3# wyifei2010

在一個(gè)正常配置的系統(tǒng)中. root 權(quán)限的用戶 有且只有一個(gè), 就是 root.


我不是太了解 postgresql的配置情況, 不知道它的用戶是在配置文件中寫的, 還是一定要用指定的用戶啟動(dòng). 這個(gè), 你可能需要查一下它的手冊(cè)了.

   

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2014-08-27 09:27 |只看該作者
要postgres用戶啟動(dòng)

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2014-08-29 10:21 |只看該作者
想起一個(gè)事,這個(gè)服務(wù)器已經(jīng)安裝了PostgreSQL,是不是沖突了
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP