配置xinetd
今天打算把所有得網絡服務都用xinetd來啟動。找了幾篇文章看了看。很快FTP,CVS,SSH都搞定了,然后配置Postgresql。死活起不來。于是去找xinetd的官方文檔,這才發現原來很多的文章都沒有很詳細地說明type這個參數得作用。我誤以為象ssh那樣省去Type也沒有問題。下面是官方文檔對type得說明:
xinetd?can?manage?3?types?of?services?:
按我得理解翻譯:
xinetd 可以管理3類服務:
xinetd?can?manage?3?types?of?services?:
- RPC?:?for?those?defined?in?the?/etc/rpc?file...; but?doesn't?work?very?well;
- INTERNAL?:?for?services?directly?managed?by?xinetd?(echo,?time,?daytime,?chargen?and?discard)?;
- UNLISTED?:?for?services?not?defined?either?in?the?/etc/rpc?file,?or?in?the?/etc/services?file?;
按我得理解翻譯:
xinetd 可以管理3類服務:
- RPC:定義在/etc/rpc文件里得服務;(xinetd對這類服務得管理并不是十分的理想)
- INTERNAL:由xinetd直接管理的服務(echo, time, daytime, chargen 和 discard);
- UNLISTED:既沒有在/etc/rpc 也沒有在/etc/services中定義得服務。
type = UNLISTED
修改配置之后重啟xinetd,posgresql啟動成功。
我的posgresql服務配置如下:
我的posgresql服務配置如下:
service?postgressql?
{
??socket_type??? =?stream
??type??? ??? ??? ??? =?UNLISTED
??port ??? ??? ??? ?? =?5432?
??server???????????? =?/etc/rc.d/postgresql
??server_args??? =?start
??instances??????? =?5
??protocol???????? =?tcp
??wait??????????????? =?no
??user??????????????? =?root
}
{
??socket_type??? =?stream
??type??? ??? ??? ??? =?UNLISTED
??port ??? ??? ??? ?? =?5432?
??server???????????? =?/etc/rc.d/postgresql
??server_args??? =?start
??instances??????? =?5
??protocol???????? =?tcp
??wait??????????????? =?no
??user??????????????? =?root
}
posted on 2007-02-15 16:52 405 Studio 閱讀(737) 評論(0) 編輯 收藏 所屬分類: LINUX