kch*_*kch 8 mac macports macos
当您通过 MacPorts 安装服务器软件时,安装完成后会打印一些有关通过 launchd 启用服务器的说明。
我立即在终端上按了 ?K 并忘记了它。
几天后,我想实际启用所述服务器。
有没有办法再次获得这些说明[1]?
我写了关于launchd
,并且port load
非常适合,但有些端口有其他说明。我欢迎一个一般性的答案。例如,git-core 将打印 bash-completion 设置说明。
额外问题:在port load
,有没有办法列出哪些端口已启动项目?
[1]:显然没有经过卸载和重新安装。
通常,您可以port load
在 MacPorts 1.8 中使用命令加载它。它采用格式port load $package
。例如,要从postgresql83-server
端口加载 PostgreSQL 服务器:
$ sudo port load postgresql83-server
Run Code Online (Sandbox Code Playgroud)
对于一些较旧的端口,端口的名称与其关联的launchd
配置文件不对应,并且port load
会失败(很少发生,但偶尔会发生)。在这种情况下,
$ sudo launchctl load -w /Library/LaunchDaemons/$config_file_to_load
Run Code Online (Sandbox Code Playgroud)
会做的伎俩。
编辑
只是为了更新我显示给定端口说明的一般方法,我刚刚了解到您可以键入
port notes slocate
Run Code Online (Sandbox Code Playgroud)
返回:
slocate's database should be updated on a regular basis. In
/opt/local/etc/daily.slocate, you'll find some lines to put in
/etc/daily.local to update the database on a daily basis (for example).
If you want to disable the weekly update of the system's built-in locate,
edit the file /etc/weekly.
Run Code Online (Sandbox Code Playgroud)
OLD
一种非常粗略的做法是直接读取 Portfile,然后查看安装后部分。以 slocate 为例:
port cat slocate | grep ui_msg
Run Code Online (Sandbox Code Playgroud)
返回:
ui_msg "\nslocate's database should be updated on a regular basis. In"
ui_msg "${prefix}/etc/daily.slocate, you'll find some lines to put in"
ui_msg "/etc/daily.local to update the database on a daily basis (for example)."
ui_msg "If you want to disable the weekly update of the system's built-in locate,"
ui_msg "edit the file /etc/weekly.\n"
Run Code Online (Sandbox Code Playgroud)
正如你所看到的,输出的port cat
格式不是很好,但应该给你足够的信息。希望这可以帮助!
归档时间: |
|
查看次数: |
1473 次 |
最近记录: |