在过去的某个时候,我安装了 posgresql 并且无法摆脱它:
$ ps -A|egrep postg 232 ??
287 ?? 0:00.02 postgres: logger process
328 ?? 0:00.09 postgres: writer process
335 ?? 0:00.06 postgres: wal writer process
336 ?? 0:00.03 postgres: autovacuum launcher process
342 ?? 0:00.01 postgres: stats collector process
Run Code Online (Sandbox Code Playgroud)
我想在每次启动时阻止它启动,因为fs_usage
它显示我的磁盘一直被占用。
我已经尝试添加POSTGRES=-NO-
in /etc/hostconfig
,但过程不断产生。
我也尝试过在另一篇文章中找到的东西,但没有运气:
$: locate postg|egrep plist
/Library/LaunchDaemons/com.edb.launchd.postgresql-8.4.plist
/Library/PostgreSQL/8.3/uninstall-postgresql.app/Contents/Info.plist
/Library/PostgreSQL/8.4/uninstall-postgresql.app/Contents/Info.plist
/Library/StartupItems/postgresql-8.3/StartupParameters.plist
$: sudo launchctl unload /Library/LaunchDaemons/com.edb.launchd.postgresql-8.4.plist
(restart)
Run Code Online (Sandbox Code Playgroud)
但仍然显示 postgresql 进程:(
Dim*_*tar 35
请注意,对于 Mac OS 10.6.8(可能更旧)上的 PostgreSQL 9.0(可能更新),为了防止 PostgreSQL 服务器自动启动,您必须:
/Library/LaunchDaemons/
com.edb.launchd.postgresql-9.0.plist
在编辑器中打开为root
(替换9.0
为您正确的版本号),例如sudo vim com.edb.launchd.postgresql-9.0.plist
.<key>RunAtLoad</key>
<true/>
为<false/>
那应该这样做。此外,如果您想立即停止服务器而不重新启动,su
请postgres
运行/Library/PostgreSQL/9.0/bin/pg_ctl stop -D<your data dir>
. 您可以使用ps aux|grep postgre
.
来源:http : //forums.enterprisedb.com/posts/list/2240.page#8321
小智 5
这个对我有用
cd /Library/LaunchDaemons/
sudo rm com.edb.launchd.postgresql-9.0.plist
Run Code Online (Sandbox Code Playgroud)
发现这个:
在 Mac OSX 中:(假设默认位置)
通过卸载程序:
postgresql.app
文件,执行(双击)将卸载postgresql安装。手动卸载:
sudo /sbin/SystemStarter stop postgresql-8.3
sudo rm -rf /Applications/PostgreSQL 8.3
sudo rm -rf /etc/postgres-reg.ini
sudo rm -rf /Library/StartupItems/postgresql-8.3
sudo rm -rf /Library/PostgreSQL/8.3
sudo dscl . delete /users/postgres
归档时间: |
|
查看次数: |
25730 次 |
最近记录: |