分类 linux 下的文章

强制使用https
server {  
    listen  192.168.1.111:80;  
    server_name test.com;  

    rewrite ^(.*)$  https://$host$1 permanent;  
}  

nginx -s reload  :修改配置后重新加载生效
nginx -s reopen  :重新打开日志文件
nginx -t -c /path/to/nginx.conf 测试nginx配置文件是否正确

关闭nginx:
nginx -s stop  :快速停止nginx
         quit  :完整有序的停止nginx

其他的停止nginx 方式:

ps -ef | grep nginx

kill -QUIT 主进程号     :从容停止Nginx
kill -TERM 主进程号     :快速停止Nginx
pkill -9 nginx          :强制停止Nginx


启动nginx:
nginx -c /path/to/nginx.conf

平滑重启nginx:
kill -HUP 主进程号

1、安装git
apt-get install git 
2、从github上克隆sqlmap到本地

github提供了两种地址,SSL和SSH,都可以使用,建议使用git~

地址1:
https://github.com/sqlmapproject/sqlmap.git
地址2:
git@github.com:sqlmapproject/sqlmap.git

克隆命令:

git clone git@github.com:sqlmapproject/sqlmap.git /你要放sqlmap的目录路径

- 阅读剩余部分 -