zoukankan      html  css  js  c++  java
  • 服务器操作常用

    ./nginx -s reload    重启nginx

    killall -9 nginx      杀死nginx

    退出Nginx

    cd /usr/local/nginx/sbin
    ./nginx -s quit

     重启Nginx

    cd /usr/local/nginx/sbin
    ./nginx -s reload

     scp 本地到另外一台: scp -r /home/zookeeper/ root@192.168.91.4:/home/zookeeper/

    vi: 1,10d  删除1到10行

    curl 通过指令发送http请求 curl  http://192.168.8.100:8080

      删除 源文件去这里 cd /etc/apt/sources.list.d 

    关于查阅的翻页vi:

    整页翻页 ctrl-f ctrl-b
    f就是forword b就是backward

    翻半页
    ctrl-d ctlr-u
    d=down u=up

    滚一行
    ctrl-e ctrl-y

    zz 让光标所杂的行居屏幕中央
    zt 让光标所杂的行居屏幕最上一行 t=top
    zb 让光标所杂的行居屏幕最下一行 b=bottom

     tail  -200f mycat.log   查询200行 实时查

    linux 查看端口号
    lsof -i
    netstat -tunlp |grep 8000

  • 相关阅读:
    字符串系列复习
    点分治总结
    LCT总结
    网络流总结
    centOS7下安装GUI图形界面
    周记 2014.10.8
    周记 2014.9.28
    周记 2014.9.20
    tar命令
    [转]bit与byte
  • 原文地址:https://www.cnblogs.com/toov5/p/9902998.html
Copyright © 2011-2022 走看看