如何提高云主机的安全性,这是很多站长都很关注的一个问题,安全性是网站运营的立身之本,否则在运营过程中总有一种如履薄冰的感觉。那么该如何加强云主机的安全性呢?
# See all set user id files:
find / -perm +4000
# See all group id files
find / -perm +2000
# Orcombine both in a single command
find / \ ( -perm -4000 -o -perm -2000 \ )- print
find / -path -prune -o -type f -perm +6000 -ls
$ sudo systemctl stop service
$ sudo systemctl disable service
$ sudo systemctl stop nginx
$ sudo systemctl disablenginx