2019-03-15 03:46:52 +00:00
|
|
|
|
# systemsetup
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
> 配置系统首选项计算机设置。
|
2019-03-15 03:46:52 +00:00
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 启用远程登录(SSH):
|
2019-03-15 03:46:52 +00:00
|
|
|
|
|
|
|
|
|
`systemsetup -setremotelogin on`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 指定时区、NTP 服务器并启用网络时间:
|
2019-03-15 03:46:52 +00:00
|
|
|
|
|
2019-10-20 03:34:33 +01:00
|
|
|
|
`systemsetup -settimezone {{美国 / 太平洋}} -setnetworktimeserver {{us.pool.ntp.org}} -setusingnetworktime on`
|
2019-03-15 03:46:52 +00:00
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 使机器从不休眠,并在电源故障或内核死机时自动重新启动:
|
2019-03-15 03:46:52 +00:00
|
|
|
|
|
|
|
|
|
`systemsetup -setsleep off -setrestartpowerfailure on -setrestartfreeze on`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- disks 选择启动:
|
2019-03-15 03:46:52 +00:00
|
|
|
|
|
|
|
|
|
`systemsetup -liststartupdisks`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 指定新的启动盘:
|
2019-03-15 03:46:52 +00:00
|
|
|
|
|
|
|
|
|
`systemsetup -setstartupdisk {{路径}}`
|