nginx搭建

  133  mkdir /usr/local/nginx
  134  cd /usr/local/nginx/
  135  pwd
  136  ls
  137  wget https://nginx.org/download/nginx-1.26.1.tar.gz
  138  ls
  139  tar -zxvf nginx-1.26.1.tar.gz
  140  ls
  141  cd nginx-1.26.1/
  142  ls
  143  ./configure
  144  make && make install
  145  whereis nginx
  146  ls
  147  pwd
  148  cd ..
  149  ls
  150  cd sbin/
  151  ls
  152  ./nginx
  153  ps -ef | grep nginx
  154  cd ..
  155  ls
  156  cd conf/
  157  ls
  158  vim nginx.conf
  159  cat nginx.conf
  160  mkdir cert
  161  ls
  162  cd cert/
  163  ls
  164  rz
  165  pwd
  166  ls
  167  cat xxxxxx.xx.key
  168  cat xxxxxxi.xx.pem
  169  clear
  170  cd ..
  171  ls
  172  nginx -t
  173  ls
  174  vim nginx.conf
  175  cd ../sbin/
  176  ls
  177  ./nginx -s reload
  178  nginx -v
  179  nginx -V
  180  cd ../..
  181  pwd
  182  cd nginx/
  183  ls
  184  cd nginx-1.26.1/
  185  ls
  186  ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
  187  ls
  188  make
  189  cp /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak
  190  nginx -s stop
  191  ps aux|grep nginx
  192  kill -9 54578 54579
  193  ps aux|grep nginx
  194  ls
  195  cp ./objs/nginx /usr/local/nginx/sbin/
  196  ls
  197  cd ../
  198  ls
  199  cd sbin/
  200  ls
  201  ./nginx
  202  ps aux|grep nginx
  203  pwd
  204  cd ..
  205  ls
  206  cd conf/
  207  ls
  208  vim nginx.conf
  209  ls
  210  cd ..
  211  ls
  212  cd html/
  213  ls
  214  cat index.html
  215  pwd
  216  cd /home/work/data/
  217  ls

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值