存在的记忆

西安老后台常用命令(待整理)

    1  mkdir /project
    2  yum list ssh
    3  yum install openssh-clients
    4  yum list jdk
    5  yum list |grep  openjdk
    6  yum install java-1.7.0-openjdk.x86_64
    7  ls
    8  rm -rf tomcat7/
    9  rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
   10  yum install nginx
   11  vi  /etc/nginx/nginx.conf
   12  vi /etc/nginx/conf.d/default.conf 
   13  ls
   14  mv tomcat-xa/ /project/
   15  cd /project/
   16  ls
   17  mv tomcat-xa/ tomcat7
   18  ls
   19  ll
   20  cd tomcat7/
   21  ls
   22  cd conf
   23  ls
   24  vi server.xml 
   25  cd ..
   26  ls
   27  vi bin/catalina.sh 
   28  cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
   29  date
   30  yum install screen 
   31  screen -ls
   32  screen -S tomcat
   33  nginx start
   34  nginx -s start
   35  nginx -start
   36  nginx start
   37  nginx 
   38  mkdir /project/nginx
   39  mkdir /project/nginx/cache
   40  mkdir /project/nginx/log
   41  ngnix
   42  nginx
   43  vi /etc/nginx/nginx.conf
   44  vi /etc/nginx/conf.d/default.conf 
   45  nginx
   46  vi /etc/nginx/conf.d/default.conf 
   47  ngnix
   48  nginx
   49  vi /etc/nginx/conf.d/default.conf 
   50  nginx
   51  vi /etc/nginx/conf.d/default.conf 
   52  nginx
   53  screen -ls
   54  screen -r 18986
   55  ls
   56  cd webapps/
   57  ll
   58  ls
   59  cd ..
   60  ls
   61  chown root:root conf/ -R
   62  ll
   63  chown root:root bin -R
   64  ll
   65  ls
   66  mv scp-img-xa.sh /project/
   67  mv youyoujp.pem /project/conf
   68  cd /project/
   69  ls
   70  cd conf
   71  ls
   72  mv conf youyoujp.pem
   73  mkdir conf
   74  mv youyoujp.pem conf/
   75  cd conf/
   76  ls
   77  chmod 600 youyoujp.pem 
   78  cd ..
   79  ls
   80  vi scp-img-xa.sh 
   81  ./scp-img-xa.sh 
   82  vi scp-img-xa.sh 
   83  ./scp-img-xa.sh 
   84  ./scp-img-xa.sh 
   85  cd /project/
   86  ls
   87  vi scp-img-xa.sh 
   88  ./scp-img-xa.sh 
   89  screen -ls
   90  cat tomcat7/conf/tomcat-users.xml 
   91  screen -ls
   92  screen -S scp
   93  cd /project/tomcat7/
   94  ls
   95  cd ..
   96  ls
   97  cat scp-img-xa.sh 
   98  find /project/tomcat7/webapps/ROOT/ueditor/jsp/upload/  -mmin -1200 |grep 方头
   99  find /project/tomcat7/webapps/ROOT/ueditor/jsp/upload/  -mmin -7200 
  100  find /project/tomcat7/webapps/ROOT/ueditor/jsp/upload/  -mmin -7200 |grep 方头
  101  find /project/tomcat7/webapps/ROOT/ueditor/jsp/upload/  -mmin -7200 
  102  find /project/tomcat7/webapps/ROOT/ueditor/jsp/upload/  -mmin -1200 |grep 1493776120944056402
  103  ls
  104  ./scp-img-xa.sh 
  105  screen -ls
  106  screen -r 18986
  107  screen -r 18986
  108  ls conf/
  109  cd /project/tomcat7/
  110  ls
  111  cd logs/
  112  ls
  113  tail -n 200 catalina.2017-05-10.log
  114  tail -n 200 localhost.2017-05-10.log 
  115  cd /project/
  116  ls
  117  vi /etc/nginx/conf.d/default.conf 
  118  screen -ls
  119  screen -r 18986
  120  cd /project/
  121  ls
  122  cat scp-img-xa.sh 
  123  ./scp-img-xa.sh 
  124  find /project/tomcat7/webapps/ROOT/ueditor/jsp/upload/  -mmin -1200 |grep 1494833707062017091.jpg
  125  1494833707062017091.jpgssh -i /project/conf/youyoujp.pem ubuntu@13.112.232.14
  126  ssh -i /project/conf/youyoujp.pem ubuntu@13.112.232.14
  127  cd /var/www/
  128  cd var
  129  ls
  130  cd /var
  131  ls
  132  cd local/
  133  ls
  134  ls
  135  cd /
  136  ls
  137  cd project/
  138  ls
  139  ls conf/
  140  df
  141  ls
  142  cd /project/
  143  ls
  144  cd tomcat7/
  145  ls
  146  cd webapps/
  147  ls
  148  cd tomcat/
  149  ls
  150  cd ..
  151  ls
  152  cd manager/
  153  ls
  154  ls
  155  vi scp-img-xa.sh 
  156  ./scp-img-xa.sh 
  157  cat scp-img-xa.sh 
  158   scp -r -i /project/conf/youyoujp.pem /project/tomcat7/webapps/ROOT/ueditor/jsp/upload/image/ ubuntu@13.112.232.14:/var/www/shop/ueditor/jsp/upload/
  159  ls
  160  vi scp-img-xa.sh 
  161  ./scp-img-xa.sh 
  162  vi scp-img-xa.sh 
  163  ls
  164  cat scp-img-xa.sh 
  165  ls
  166  ll
  167  ls
  168  screen -ls
  169  screen -r 25987
  170  kill 25987
  171  screen -ls
  172  screen -S scp
  173  cd /project/
  174  ls
  175  ls
  176  cp nuorui-xa-cn-ali.pem /project/conf
  177  screen -ls
  178  screen -r 25987
  179  screen -ls
  180  screen -r 1487
  181  screen -r 1487 22
  182  ls
  183  cd /project/
  184  ls
  185  cd tomcat7/
  186  ls
  187  cd logs
  188  ls
  189  cd ..
  190  ls
  191  cd webapps/ROOT/mobile/page/shop/
  192  ls
  193  vi detail.jsp 
  194  ls
  195  cd /project/
  196  ls
  197  cd tomcat7/
  198  ls
  199  cd webapps/
  200  ls
  201  cd ROOT/
  202  ls
  203  cd mobile/
  204  ls
  205  cd ..
  206  cd /project/
  207  ls
  208  mkdir backup
  209  cd backup/
  210  ls
  211  cp /project/tomcat7/webapps/ROOT/ ./
  212  cp -r /project/tomcat7/webapps/ROOT/ ./
  213   ls
  214  cd /
  215  ls
  216  cd project/
  217  ls
  218  cd backup/
  219  ls
  220  ll
  221  ll ROOT/WEB-INF/classes/com/ibit/enc/impl/
  222  cp ROOT/WEB-INF/classes/com/ibit/enc/impl/*.* /project/tomcat7/ROOT/WEB-INF/classes/com/ibit/enc/impl/
  223  cp ROOT/WEB-INF/classes/com/ibit/enc/impl/*.* /project/tomcat7/webapps/ROOT/WEB-INF/classes/com/ibit/enc/impl/
  224  ll /project/tomcat7/webapps/ROOT/WEB-INF/classes/com/ibit/enc
  225  ll /project/tomcat7/webapps/ROOT/WEB-INF/classes/com/ibit/enc/impl/
  226  chown -R centos:centos /project/tomcat7/webapps/ROOT/WEB-INF/classes/com/ibit/enc/impl/
  227  ll /project/tomcat7/webapps/ROOT/WEB-INF/classes/com/ibit/enc/impl/
  228  screen -ls
  229  screen -r 18986
  230  screen -r 18986
  231  screen -ls
  232  screen -r 18986
  233  ls
  234  screen -r 18986
  235  screen -r 18986
  236  screen -x 18986
  237  screen -x 18986
  238  ps -aux|grep java
  239  kill -9 17267
  240  cd /project/tomcat7/bin
  241  ./catalina.sh run
  242  screen -ls
  243  screen -r 18986
  244  screen -r 18986
  245  screen -x 18986
  246  screen -X tomcat7
  247  screen -S tomcat7
  248  cd /project/
  249  ls
  250  screen -ls
  251  screen -r 1487
  252  cd tomcat7/webapps/
  253  ls
  254  cd ROOT/
  255  ls
  256  cd admin/
  257  ls
  258  cat exec.jsp 
  259  ls
  260  cat scpImg.jsp 
  261  cd /project/
  262  ls
  263  crontab -e
  264  ls
  265  cd /project/
  266  ls
  267  cd tomcat7/
  268  ls
  269  screen -ls
  270  cd logs/
  271  ls
  272  rm -rf *2017-05*.*
  273  rm -rf *2017-06*.*
  274  rm -rf *2017-07*.*
  275  ll
  276  ls
  277  rm -rf *2017-04*.*
  278  rm -rf *2017-03*.*
  279  rm -rf *2017-02*.*
  280  ls
  281  tail -n 200 catalina.2017-08-15.log
  282  ls
  283  tail -n 200 localhost.2017-08-15.log  
  284  tail -n 200 localhost.2017-08-15.log  
  285  date
  286  ls
  287  screen -ls
  288  screen -r 19902
  289  cd /project/tomcat7/
  290  ls
  291  cd logs/
  292  ls
  293  ll
  294  df
  295  screen -ls
  296  screen -r 19902
  297  screen -r 19902
  298  screen -r 19902
  299  ls
  300  df
  301  screen -ls
  302  df
  303  screen -ls
  304  screen -r 19902
  305  jps
  306  ls
  307  ps -aux|grep java
  308  ls
  309  cd /project/tomcat7/bin
  310  ls
  311  cd 
  312  cd ..
  313  ls
  314  cd logs
  315  ls
  316  cd project/tomcat7/logs/
  317  ls
  318  tail -n 200 catalina.2017-09-02.log
  319  screen -ls
  320  screen -r 19902
  321  cd /
  322  cd /project/tomcat7/
  323  ls
  324  cd bin
  325  ls
  326  cd log
  327  ls
  328  tail -n web.log
  329  tail -n 200 web.log
  330  ls
  331  cd /
  332  ls
  333  cd project/
  334  ls
  335  cd tomcat7/
  336  ls
  337  cd logs/
  338  ls
  339  tail -n 200 catalina.2017-09-02.log
  340  cd ../
  341  ls
  342  vi conf/server.xml 
  343  screen -ls
  344  screen -r 19902
  345  ps -aux |grep java
  346  kill -9 19912
  347  screen -r 19902
  348  ps -aux
  349  free
  350  vi /project/tomcat7/bin/catalina.sh
  351  ls
  352  cd /project/
  353  ls
  354  cd backup/
  355  ls
  356  cp -R ../tomcat7/webapps/ROOT/WEB-INF/classes/ ./
  357  ls
  358  ll
  359  screen -ls
  360  screen -r 19902
  361  ps -aux|grep java
  362  kill -9 4852
  363  screen -r 19902
  364  ps -aux |grep jav
  365  kill -9 28040
  366  screen -r 19902
  367  screen -r 19902
  368  screen -r 19902
  369  ls
  370  cd /
  371  ks
  372  screen -ls
  373  cd /project/
  374  ls
  375  cd backup/
  376  ls
  377  mkdir 20171028
  378  cd 20171028/
  379  cp -r /project/tomcat7/webapps/ROOT/WEB-INF/classes/ ./
  380  ls
  381  ls classes/
  382  vi /project/tomcat7/webapps/ROOT/WEB-INF/classes/jdbc.properties 
  383  cp RootController.class /project/tomcat7/webapps/ROOT/WEB-INF/classes/com/ibit/control/
  384  ls/project/tomcat7/webapps/ROOT/WEB-INF/classes/com/ibit/control/
  385  ls /project/tomcat7/webapps/ROOT/WEB-INF/classes/com/ibit/control/
  386  ll /project/tomcat7/webapps/ROOT/WEB-INF/classes/com/ibit/control/
  387  screen -ls
  388  screen -r 19902
  389  ./catalina.sh run
  390  ./catalina.sh run
  391  ./catalina.sh run
  392  ./catalina.sh run
  393  ./catalina.sh run
  394  ./catalina.sh run
  395  ./catalina.sh run
  396  ./catalina.sh run
  397  ls
  398  cd ..
  399  ls
  400  cd logs
  401  ls
  402  rm -f *09-*.*
  403  ls
  404  rm -f *08-*.*
  405  ls
  406  tail -n 200 catalina.2017-10-31.log
  407  ls 
  408  tail -n 200 localhost.2017-10-31.log 
  409  tail -n 200 localhost.2017-10-31.log 
  410  ls
  411  cd /
  412  ls
  413  cd project/tomcat7/
  414  ls
  415  cd webapps/
  416  cd ..
  417  ls
  418  exit
  419  free
  420  free -m
  421  cd bin
  422  ls
  423  ./catalina.sh run
  424  ls
  425  ./catalina.sh run
  426  ./catalina.sh run
  427  mv ~/*.dat ../webapps/ROOT/WEB-INF/classes/
  428  mv /home/centos/*.dat ../webapps/ROOT/WEB-INF/classes/
  429  ./catalina.sh run
  430   ls ../webapps/ROOT/WEB-INF/
  431   ls ../webapps/ROOT/WEB-INF/classes/
  432   vi ../webapps/ROOT/WEB-INF/classes/config.properties 
  433   vi ../webapps/ROOT/WEB-INF/classes/config.properties 
  434  ./catalina.sh run
  435   vi ../webapps/ROOT/WEB-INF/classes/jdbc.properties 
  436  ./catalina.sh run
  437  ./catalina.sh run
  438  ./catalina.sh run
  439  ./catalina.sh run
  440  ls
  441  cp -r /project/backup/ROOT/WEB-INF/classes/com/ibit   /project/tomcat7/webapps/ROOT/WEB-INF/classes/com/ibit
  442  ./catalina.sh run
  443  cd /project/tomcat7/
  444  ls
  445  cd webapps/
  446  ls
  447  cd tomcat/
  448  cd RELEASE-NOTES.txt 
  449  ls
  450  cd ..
  451  ls
  452  cd ROOT/
  453  ls
  454  cd WEB-INF/
  455  ls
  456  vi jdbc.properties 
  457  ls
  458  cd classes/
  459  ls
  460  vi jdbc.properties 
  461  ls
  462  cd /project/tomcat7/bin
  463  ./catalina.sh run
  464  exit
  465  ps -aux |grep java
  466  screen -ls
  467  screen -r 19902
  468  nginx
  469  nginx -s stop
  470  screen -r 19902
  471  ls
  472  screen -r 19902
  473  screen -ls
  474  screen -x 18986
  475  ls
  476  screen -ls
  477  screen -S tomcat7
  478  ngnix
  479  nginx
  480  screen -ls
  481  screen -r 22831
  482  nginx -s stop
  483  screen -r 22831
  484  nginx
  485  screen -r 22831
  486  screen -r 22831
  487  nginx
  488  screen -r 22831
  489  screen -ls
  490  ps -aux |grep java
  491  screen -r 22831
  492  screen -r 22831
  493  ls
  494  df
  495  cd /project/
  496  ls
  497  cd backup/
  498  ls
  499  rm -rf 20171028/
  500  rm -rf ROOT/
  501  df
  502  cd ../
  503  ls
  504  cd nginx/
  505  ls
  506  cd log/
  507  ls
  508  ll
  509  rm host.access.log -f
  510  df
  511  nginx -s restart
  512  nginx -s stop
  513  nginx
  514  df
  515  cd /project/tomcat7/webapps/ROOT/admin
  516  ls
  517  vi login.jsp 
  518  vi main.jsp
  519  sceen -ls
  520  screen -ls
  521  screen -r 22831
  522  df
  523  screen -ls
  524  df
  525  screen -ls
  526  screen -sl
  527  screen -ls
  528  screen -r 22831
  529  df
  530  screen -r 22831
  531  df
  532  screen -r 22831
  533  screen -r 22831
  534  ps -aux |grep java
  535  screen -ls
  536  screen -r 22831
  537  curl http://localhost
  538  screen -r 22831
  539  screen -x 22831
  540  ls
  541  cd /bin/
  542  ls
  543  /catalina.sh run
  544  nginx -s restart
  545  /catalina.sh run
  546  ./catalina.sh run
  547  cd ..
  548  ls
  549  sudo usr
  550  cd usr
  551  ls
  552  cd bin/
  553  ls
  554  cd /
  555  ls
  556  cd opt/
  557  ls
  558  cd ..
  559  cd home/
  560  ls
  561  cd centos/
  562  ls
  563  cd ..
  564  ls
  565  cd ..
  566  cd bin/
  567  ls
  568  history

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »