码农之家 - VPS
type: channel
link: http://www.liyx.fun/index.php/tag/VPS/
items: VPS 安装CentOS7后的安全加固及其它配置

VPS 安装CentOS7后的安全加固及其它配置
type: item
date: 2018-11-29T01:07:00+08:00
description: 1、使用密钥登录SSHhttps://www.freehao123.com/vps-ssh/2、禁用账号密码登录SSHvi /etc/ssh/sshd_configPasswordAuthentication no3、安装APFhttp://blog.topspeedsnail.com/archives/7660apf -s 启动报错，命令找不到，安装相应的命令即可。yum install which4、安装ddos deflatehttps://www.jianshu.com/p/f1e44408c1955、安装denyhosthttps://www.cnblogs.com/xxx91hx/p/4374327.html6、用 VPS 搭建 shadowsocks 服务器http://blog.chinaunix.net/uid-25530360-id-5595974.html7、shadowsocks开机启动cd /lib/systemd/system/vi /lib/systemd/system/shadowsocks.service[Unit]Description=ShadowSocks[Service]TimeoutStartSec=0ExecStart=/usr/bin/ssserver -c /etc/shadowsocks.json startExecStop=/usr/bin/ssserver -c /etc/shadowsocks.json stop[Install]WantedBy=multi-user.targetsystemctl enable shadowsocks.servicesystemctl start shadowsocks.service8、CentOS7一键搭建frp服务器脚本https://diannaobos.com/post/691.html安装路径：/usr/local/frps配置文件：/usr/local/frps/frps.ini9、frps 添加开机启动chkconfig frps on10、安装Nginxhttps://www.cnblogs.com/songxingzhu/p/8568432.htmlNginx路径：/etc/nginx配置文件： /etc/nginx/nginx.conf