摘要: vim /etc/ssh/sshd_config 找到下面两行: 去掉注释,改为: 这两行的意思分别为: 1、客户端每隔多少秒向服务发送一个心跳数据 2、客户端多少秒没有相应,服务器自动断掉连接 重启SSHD服务 阅读全文
posted @ 2019-10-26 11:37 咳嗽的小鱼 阅读(1367) 评论(0) 推荐(0) 编辑
摘要: nginx参数: prefix= 指向安装目录 sbin path 指向(执行)程序文件(nginx) conf path= 指向配置文件(nginx.conf) error log path= 指向错误日志目录 pid path= 指向pid文件(nginx.pid) lock path= 指向l 阅读全文
posted @ 2019-10-26 01:57 咳嗽的小鱼 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 使用nginx给网站添加身份认证 basic auth 默认情况下nginx已经安装了ngx_http_auth_basic_module模块,如果不需要这个模块,可以加上 without http_auth_basic_module 。 nginx basic auth指令 语法: auth_ba 阅读全文
posted @ 2019-10-26 00:28 咳嗽的小鱼 阅读(4500) 评论(0) 推荐(0) 编辑