linux命令补充

安装zabbix遇到的一些命令

vi 替换行

:%s#http://repo.zabbix.com#https://mirrors.tuna.tsinghua.edu.cn/zabbix#g

Packages Altered:
    Dep-Install apr-1.4.8-5.el7.x86_64                 @os
    Dep-Install apr-util-1.5.2-6.el7.x86_64            @os
    Dep-Install httpd-2.4.6-93.el7.centos.x86_64       @os
    Dep-Install httpd-tools-2.4.6-93.el7.centos.x86_64 @os
    Dep-Install libXpm-3.5.12-1.el7.x86_64             @os
    Dep-Install libxslt-1.1.28-5.el7.x86_64            @os
    Dep-Install libzip-0.10.1-8.el7.x86_64             @os
    Dep-Install mailcap-2.1.41-2.el7.noarch            @os
    Dep-Install php-5.4.16-48.el7.x86_64               @os
    Dep-Install php-bcmath-5.4.16-48.el7.x86_64        @os
    Dep-Install php-cli-5.4.16-48.el7.x86_64           @os
    Dep-Install php-common-5.4.16-48.el7.x86_64        @os
    Dep-Install php-gd-5.4.16-48.el7.x86_64            @os
    Dep-Install php-ldap-5.4.16-48.el7.x86_64          @os
    Dep-Install php-mbstring-5.4.16-48.el7.x86_64      @os
    Dep-Install php-mysql-5.4.16-48.el7.x86_64         @os
    Dep-Install php-pdo-5.4.16-48.el7.x86_64           @os
    Dep-Install php-xml-5.4.16-48.el7.x86_64           @os
    Dep-Install t1lib-5.1.2-14.el7.x86_64              @os
    Dep-Install zabbix-web-4.0.24-1.el7.noarch         @zabbix
    Install     zabbix-web-mysql-4.0.24-1.el7.noarch   @zabbix

[root@VM-0-6-centos test]# w
 14:31:55 up 100 days, 20:47,  1 user,  load average: 0.00, 0.01, 0.05
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    124.65.173.246   10:18    3.00s  0.16s  0.16s -bash
#post
[root@VM-0-6-centos test]# curl -X POST -L -d post请求数据 请求的url
#-c 使用cookie, -b 保留cookie 
[root@VM-0-6-centos test]# curl -X POST -c cookie -b cookie -L -d post请求数据 请求的url
#get    -L会在跳转一次(重定向后的)
[root@VM-0-6-centos test]# curl -I www.baidu.com
原文地址:https://www.cnblogs.com/hanfe1/p/13685013.html