随笔分类 - linux部署服务
摘要:启动和停止服务 zookeeper /usr/local/apache-zookeeper-3.8.2-bin/bin/zkServer.sh start /usr/local/apache-zookeeper-3.8.2-bin/bin/zkServer.sh stop kafka /usr/lo
阅读全文
摘要:参考: https://www.cnblogs.com/paul8339/p/11987345.html https://mikechen.cc/31360.html https://zhuanlan.zhihu.com/p/637366705 本文使用一台虚拟机部署6个不同端口的redis实例 1
阅读全文
摘要:kafka存储结构和查看方式 参考文档 http://www.taodudu.cc/news/show-4453314.html?action=onClick https://blog.csdn.net/weixin_42073629/article/details/108906817 ![img]
阅读全文
摘要:kafka常用命令 http://681314.com/A/h9nfEtAOIV https://zhuanlan.zhihu.com/p/103915259 https://www.cnblogs.com/wushaoyu/p/11486551.html https://blog.csdn.net
阅读全文
摘要:centos7升级PHP7.2到8.0 参考:https://blog.csdn.net/hy6533/article/details/120323038 宿主机部署5.0 https://blog.csdn.net/litaimin/article/details/114636527 1.删除老版
阅读全文
摘要:1. 通过API删除服务 http://www.manongjc.com/detail/29-aknbakwssuwbasf.html
阅读全文
摘要:psql -h 10.253.100.11 -U postgres -p 32496 10.23安装http://blog.itpub.net/29785807/viewspace-2932433/https://www.modb.pro/db/564635 查看状态 systemctl start
阅读全文
摘要:参考: https://www.cnblogs.com/Amos-Turing/p/17126265.html https://blog.csdn.net/xcjyxy2021/article/details/124376407 https://blog.csdn.net/sinat_2026036
阅读全文
摘要:未测试 示例3:server{ listen 80; server_name www.aming.com; return 200 "hello";}说明:如果要想返回字符串,必须要加上状态码,否则会报错。还可以支持json数据 示例4:location ^~ /aming { default_typ
阅读全文
摘要:官方文档:https://puppet.com/docs/puppet/6/puppet_index.html 自动化部署工具:Ansible、Chef、Puppet、Saltstack对比 一. 基本介绍和工作原理 1. Puppet介绍 puppet是一种Linux、Unix、windows平台
阅读全文
摘要:https://www.jianshu.com/p/15538d9f7a67 前言:对于反代理这个词呢,总会想到nginx服务器,然而今天想让apache与nginx在同一个端口跑,不知道是我玩挂了还是nginx不稳定,时而正常时而~~,由于weblogic在多model的情况下url总是带有war
阅读全文
摘要:nginx的default.nginx中添加 location ~ ^/mqtt { proxy_pass http://emqttd:8083; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_heade
阅读全文
摘要:https://www.jianshu.com/p/d43e73efefe1 如果www.a.com域设置了access-control-allow-origin:* http头, 其他任何域包括www.b.com域的js就可以使用Ajax技术读取到www.a.com域的数据
阅读全文
摘要:参考 https://www.cnblogs.com/kevingrace/p/9512287.html
阅读全文
摘要:这几个的参数的作用是向后端转发的时候添加头信息; proxy_set_header Host $host:$server_port; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_ad
阅读全文
摘要:安装方法:http://openresty.org/cn/linux-packages.html 1. openssl的版本信息 2. openresty的版本信息 3. 创建服务器私钥,命令会提醒输入一个密码,必须输入(在nginx的conf所在的路径下进行操作,当然也可以在其他路径,需要配合后续
阅读全文
摘要:一. 修改apache2原80端口为90端口 1. 修改/etc/apache2/ports.conf, 将端口80改为90,443,改为444 2. 修改/etc/apache2/sites-enabled/000-default, 将<virtualHost *:80>修改为90 3. 重启 s
阅读全文
摘要:转自http://www.cnblogs.com/1214804270hacker/p/9299462.html 一、认识访问静态资源与访问动态资源的区别 静态资源:指存储在硬盘内的数据,固定的数据,不需要计算的数据。 如:图片、字体、js文件、css文件等等。在用户访问静态资源时,服务器会直接将这
阅读全文
摘要:转自https://www.cnblogs.com/1214804270hacker/p/9325150.html 一、关于Nginx的负载均衡 在服务器集群中,Nginx起到一个代理服务器的角色(即反向代理),为了避免单独一个服务器压力过大,将来自用户的请求转发给不同的服务器。 二、Nginx负载
阅读全文
摘要:rewrite可以写在server段、location段和if段。语法: flag是标记。有4种标记,它们的作用如下表。 注意: last和break用来实现URL改写,此时浏览器中的地址不会改变,但实际上在服务器上访问的资源和路径已经改变了。 redirect和permanent用来实现URL跳转
阅读全文