linux命令操作nginx

C:\>cd program files
C:\Program Files>

cd\
到达当前分区的根目录
C:\Program Files>cd \
C:\>

cd ..
返回上一层目录
C:\Program Files\java>cd ..
C:\Program Files>
由C盘转到D盘
C:\>d:
D:\>
249linux开启nginx
 [root@249 ~]# cd ../
 [root@249 /]# ls
[root@249 /]# cd usr
> bin  boot  dev  etc  home  lib  lost+found  media  misc  mnt  net  opt  proc  root  sbin  selinux  srv  sys  tmp  usr  var
> [root@249 /]# cd usr
> [root@249 usr]# ls
> bin  etc  games  include  kerberos  lib  libexec  local  sbin  share  src  tmp  X11R6
> [root@249 usr]# cd local
> [root@249 local]# ls
> age  age.tar.gz  bin  etc  games  include  lib  libexec  nginx  nginx1  nginxbak  sbin  share  src
> [root@249 local]# cd nginx
> [root@249 nginx]# ls
> client_body_temp  conf  fastcgi_temp  html  logs  proxy_temp  sbin
> [root@249 nginx]# cd sbin
> [root@249 sbin]# ls
> nginx
> [root@249 sbin]# ./nginx

./nginx -s stop   关闭nginx

vi filename    查看文件
光标落在某处时     i                    插入
:wq!           保存退出
:w!   保存




  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值