我已经从源代码运行安装postgresql 9.6.2。 我执行.configure , make和make install命令,完美地安装了数据库。 然后我安装了用户,使用createdb命令创build了数据库,并且能够本地login到postgresql用户来执行本地sql查询。
我的问题是自动启动。 如何设置自动启动function? 命令service postgresql restart错误说no unit 。 我也试过postgresql-9.6 , postgresql-9.6.2 , postgresql-962和其他一些无效。
我如何configuration这个? 谢谢。