常用服务linux命令行

634 查看

Linux命令行

创建全局可执行指令
    ln -s /home/需要链接的文件  /usr/local/bin/指令名   
        -----------两个都必须是绝对路径;
    
服务开机自启动:--------前提:添加全局可执行指令
    chkconfing 服务名 on
    若想关闭,将on改为off
    
命令杂项:
    free -h   
        --------查看剩余内存和swap
    ip -s link 或 ip -h link 或 ip -s addr 或 ip -h addr  
        --------查看ip
    url
    uri
    如果需要自启动某些服务,只需使用chkconfig 服务名 on即可,若想关闭,将on改为off