Chinaunix

标题: 在win下如何将postgre打包 [打印本页]

作者: abin30    时间: 2005-04-21 21:35
标题: 在win下如何将postgre打包
准备将postgre8打包进安装程序,可是安装了很多次postgre ,监视注册表,还是没有搞定,这是我了解的。
1、复制文件到安装目录
2、复制共享库 :libeay32.dll libiconv-2.dll libintl-2.dll libpq.dll ssleay32.dll 到c:\windows\system32
3、注册组件
4、注册为服务
哪位知道postgre 的安装过程,主要就是注册为组件这个过程。请赐教,谢谢!
而且我手工添加服务成功但是不能启动。
E:\postgresql\bin>;pg_ctl register -N "OSTGRE" -D "E:\postgre/data"
这里是出错信息
事件 ID ( 0 )的描述(在资源( PostgreSQL )中)无法找到。本地计算机可能没有必要的注册信息或消息 DLL 文件来从远端计算机显示消息。您可能可以使用 /AUXSOURCE= 标识来检索词描述;查看帮助和支持以了解详细信息。下列信息是事件的一部分: Execution of PostgreSQL by a user with administrative permissions is not
permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromises.  See the documentation for
more information on how to properly start the server.
------------------------------------------
看提示好象是因为 postgre 不能使用高权限用户启动的, 可是已经我在服务管理器里边将启动用户修改为一个普通用户了,但是依然是这个样子,不知道怎么解决,请指教,谢谢。。。。。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2