Nginx的autoindex 命令可以自动列出目录下的文件,一些网站用这个功能做文件下载,但是Nginx又没有提供这个页面的 自定义的功能,后来看到别人提及 ngx_openresty,才想到 body_filter 阶段可以修改 response 的请求内容,只要进行一些hacking就能完成这个需求啦. Use openresty to modify the page generated by the nginx autoindex command code nginx 配置片段 loca…
修改/etc/ssh/sshd_config配置文件(注意:这里是sshd_config,而不是ssh_config) vi /etc/ssh/sshd_config 在sshd_config文件中添加一个端口号2222(这里保留22端口,是为了放置假如配置失败的话,还可以使用22端口使用ssh登录,配置完成后,可以删除22端口) Port 22 Port 2222 重启 ssh 服务: systemctl restart sshd.service…
1.marathon文档:https://mesosphere.github.io/marathon/docs/native-docker.html Static port mapping: It's also possible to specify non-zero host ports. When doing this you must ensure that the target ports are included in some resource offers! The Mesos s…
linux 修改mysql默认端口3306 cd /etc/mysql/my.cnf 修改两处 客户端的port=3306 和mysqld的服务器端口port=3306 [client] port=3306 [mysqld] port=3306 重启mysql服务器即可 sudo service mysql restart…