From 31ad6c875cc0c7ac01f8f1043f7f5f079bb19d63 Mon Sep 17 00:00:00 2001 From: Dct Mei Date: Sun, 14 Jun 2020 09:55:57 +0800 Subject: [PATCH] style: Small format adjustment Two plans have been established for the problem of insufficient authority when using certificates. --- README.md | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 1ea3b74..4bbc0ee 100644 --- a/README.md +++ b/README.md @@ -87,13 +87,17 @@ or ### 證書權限問題 -假设,证书文件的所在路径为 `/srv/http/`,文件分别为 `/srv/http/example.com.key` 和 `/srv/http/example.com.pem`。 +假設,這書文件所在的路徑為 `/srv/http/`。 + +文件分別為 `/srv/http/example.com.key` 和 `/srv/http/example.com.pem`。 方案一: -`/srv/http/` 的默认权限一般为 755,`/srv/http/example.com.key` 的默认权限一般为 600,`/srv/http/example.com.pem` 的默认权限一般为 644。 +`/srv/http/` 的默認權限一般為 755; +`/srv/http/example.com.key` 的默認權限一般為 600; +`/srv/http/example.com.pem` 的默認權限一般為 644。 -将 `/srv/http/example.com.key` 修改为 644 即可: +將 `/srv/http/example.com.key` 修改為 644 即可: ``` # chmod 644 /srv/http/example.com.key @@ -105,29 +109,29 @@ or # id nobody ``` -显示出来的结果可能是: +1. 显示出来的结果可能是: -``` -uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup) -``` + ``` + uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup) + ``` -也可能是: + 相应的,只需要执行: -``` -uid=65534(nobody) gid=65534(nobody) groups=65534(nobody) -``` + ``` + # chown -R nobody:nogroup /srv/http/ + ``` -相应的,只需要执行: +2. 显示出来的结果可能是: -``` -# chown -R nobody:nogroup /srv/http/ -``` + ``` + uid=65534(nobody) gid=65534(nobody) groups=65534(nobody) + ``` -或是: + 相应的,只需要执行: -``` -# chown -R nobody:nobody /srv/http/ -``` + ``` + # chown -R nobody:nobody /srv/http/ + ``` ## 參數