Initial Home page

master
Dct Mei 2020-06-14 02:41:47 +00:00
commit 0aee3fc063
1 changed files with 45 additions and 0 deletions

45
證書權限問題.md Normal file

@ -0,0 +1,45 @@
假設,證書文件所在的路徑為 `/srv/http/`
文件分別為 `/srv/http/example.com.key``/srv/http/example.com.pem`
方案一:
1. `/srv/http/` 的默認權限一般為 755
2. `/srv/http/example.com.key` 的默認權限一般為 600
3. `/srv/http/example.com.pem` 的默認權限一般為 644。
`/srv/http/example.com.key` 修改為 644 即可:
```
# chmod 644 /srv/http/example.com.key
```
方案二:
```
# id nobody
```
1. 显示出来的结果可能是:
```
uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
```
相应的,只需要执行:
```
# chown -R nobody:nogroup /srv/http/
```
2. 显示出来的结果也可能是:
```
uid=65534(nobody) gid=65534(nobody) groups=65534(nobody)
```
相应的,只需要执行:
```
# chown -R nobody:nobody /srv/http/
```