centos7和centos6防火墙

centos7:
https://www.linuxidc.com/Linux/2016-12/138979.htm

查看防火墙状态: firewall-cmd --state
停止firewall: systemctl stop firewalld.service
禁止firewall开机启动: systemctl disable firewalld.service

systemctl stop firewalld.service;
systemctl disable firewalld.service;
systemctl mask firewalld.service

centos6:

[linuxidc@localhost ~]$ service iptable status
[root@localhost ~]#servcie iptables stop --临时关闭防火墙
[root@localhost ~]#chkconfig iptables off --永久关闭防火墙

curl: http://www.ruanyifeng.com/blog/2019/09/curl-reference.html

-X POST/GET
-H 报文Header
-d post 数据
例子:
curl -X GET "http://127.0.0.1:8732/chains/main/blocks/50" -H "accept: application/json"
curl -X POST -H "Authorization: Bearer eyJhbGciOiJLTVNFUzI1NiIsInR5cCI6IkpXVCJ9"
-d '{"block_num_or_id": "100"}'
"https://mainnet.eos.dfuse.io/v1/chain/get_block"
curl -d @data https://mainnet.eos.dfuse.io/v1/chain/get_block

你可能感兴趣的:(centos7和centos6防火墙)