sysctl.conf
狮子上的文件在什么位置?在 Snow Leopard 中,它位于/etc/sysctl.conf
但现在该文件夹不再包含它。在聚光灯下搜索文件不会产生任何结果。
共享内存设置是否已移至不同的 conf 文件?它叫什么名字?
编辑
我正在尝试修改机器的内核共享内存设置。当我没有sysctl.conf
在正确的位置找到文件时,我使用推荐的设置创建了自己的文件并将其放入/etc
目录中。但是运行sysctl -a
仍然显示旧的内存设置已经到位。
如何在安装 Lion 时修改这些设置?
我正在尝试在相对干净的 Lion 安装上设置 pg,但没有成功。
首先我成功安装了自制软件,并安装了 postgresql 没有任何错误。
然后我尝试运行一个 rails 应用程序,出现错误。尝试运行此脚本:http : //nextmarvel.net/blog/2011/09/brew-install-postgresql-on-os-x-lion/
为了隐藏默认系统 postgres 安装,但现在我收到以下错误:
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Run Code Online (Sandbox Code Playgroud)
当我尝试postgres
在 bin 目录中运行脚本时,出现以下错误:
larson:~ larson$ /usr/local/Cellar/postgresql/9.1.3/bin/postgres ; exit;
postgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA environment variable.
logout
Run Code Online (Sandbox Code Playgroud)
很明显,postgres 无法启动,因为它没有正确配置。有没有人对配置它的正确方法有任何建议,以便它启动?