linux更改文件夹所有者和读写权限

1  chown  application:application mfs/             //修改文件夹得所有者或组

chown -hR username:groupname ./目录名

其中:h表示对符号链接也起作用; 

R表示对所有子文件也起作用; 

后面的用户名和组名用冒号分割; 

最后是要修改的目标文件夹;

2  chmod -R 757 mfs/                             //修改文件夹得读写权限

   chmod -R 777 mfs/                            //修改文件夹得读写权限,命令来快速修改文件权限为最高(即文件可被读/写/运行)


//***********linux部署常用命令*******

1  ps -ef|grep Dai           //查看所有进程
2  kill -9 26851             //杀死进程
3  cd ../home          //切换到指定目录
4  rm -rf Grape-Service Grape-Service.war  删除指定文件 
5  rm -rf *        //删除当前目录所有文件 
6  ll              // ll 列出来的结果详细信息(包括时间大小)
9  LS         //查看文件
10  pwd    //查看完成当前路径
11  ./startup.sh   //启动tomcat
12  su - root  //就等于你的操作环境跟用户都变成root了  切换用户和操作环境
13 chown  -R application:application mfs/         //修改文件夹所有者权限
14 chmod -R 777 mfs                    //修改用户文件夹读写可执行权限


SSH Secure Shell 3.2.9 (Build 283)

Copyright (c) 2000-2003 SSH Communications Security Corp - http://www.ssh.com/

This copy of SSH Secure Shell is a non-commercial version.
This version does not include PKI and PKCS #11 functionality.


Last login: Mon May 19 13:35:43 2014 from 192.168.23.78
[application@localhost ~]$ pwd
/home/application
[application@localhost ~]$ cd ../
[application@localhost home]$ cd ../
[application@localhost /]$ cd opt
[application@localhost opt]$ cd apache-tomcat-7.0.47
[application@localhost apache-tomcat-7.0.47]$ cd bin
[application@localhost bin]$ ./shutdown.sh
Using CATALINA_BASE:   /opt/apache-tomcat-7.0.47
Using CATALINA_HOME:   /opt/apache-tomcat-7.0.47
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.47/temp
Using JRE_HOME:        /opt/jdk1.7.0_45
Using CLASSPATH:       /opt/apache-tomcat-7.0.47/bin/bootstrap.jar:/opt/apache-tomcat-7.0.47/bin/tomcat-juli.jar
[application@localhost bin]$ cd ../
[application@localhost apache-tomcat-7.0.47]$ cd webapps
[application@localhost webapps]$ rm -rf Grape-Service Grape-Service.war ROOT
[application@localhost webapps]$ cd ../
[application@localhost apache-tomcat-7.0.47]$ cd bin
[application@localhost bin]$ .start.up
-bash: .start.up: command not found
[application@localhost bin]$ ./start.up
-bash: ./start.up: No such file or directory
[application@localhost bin]$ ./startup.sh
Using CATALINA_BASE:   /opt/apache-tomcat-7.0.47
Using CATALINA_HOME:   /opt/apache-tomcat-7.0.47
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.47/temp
Using JRE_HOME:        /opt/jdk1.7.0_45
Using CLASSPATH:       /opt/apache-tomcat-7.0.47/bin/bootstrap.jar:/opt/apache-tomcat-7.0.47/bin/tomcat-juli.jar
[application@localhost bin]$ ll
total 700
-rw-r--r-- 1 application application  28641 Oct 18  2013 bootstrap.jar
-rw-r--r-- 1 application application  13217 Oct 18  2013 catalina.bat
-rwxr-xr-x 1 application application  20483 Oct 18  2013 catalina.sh
-rw-r--r-- 1 application application   2121 Oct 18  2013 catalina-tasks.xml
-rw-r--r-- 1 application application  24283 Oct 18  2013 commons-daemon.jar
-rw-r--r-- 1 application application 204944 Oct 18  2013 commons-daemon-native.tar.gz
-rw-r--r-- 1 application application   2131 Oct 18  2013 configtest.bat
-rwxr-xr-x 1 application application   1982 Oct 18  2013 configtest.sh
-rw-r--r-- 1 application application   1342 Oct 18  2013 cpappend.bat
drwxrwxr-x 3 application application   4096 May 19 13:15 d:
-rwxr-xr-x 1 application application   7940 Oct 18  2013 daemon.sh
-rw-r--r-- 1 application application   2178 Oct 18  2013 digest.bat
-rwxr-xr-x 1 application application   2021 Oct 18  2013 digest.sh
-rw-r--r-- 1 application application   3264 Oct 18  2013 setclasspath.bat
-rwxr-xr-x 1 application application   3524 Oct 18  2013 setclasspath.sh
-rw-r--r-- 1 application application   2111 Oct 18  2013 shutdown.bat
-rwxr-xr-x 1 application application   1960 Oct 18  2013 shutdown.sh
-rw-r--r-- 1 application application   2112 Oct 18  2013 startup.bat
-rwxr-xr-x 1 application application   1961 Oct 18  2013 startup.sh
-rw-r--r-- 1 application application  38682 Oct 18  2013 tomcat-juli.jar
-rw-r--r-- 1 application application 286622 Oct 18  2013 tomcat-native.tar.gz
-rw-r--r-- 1 application application   4114 Oct 18  2013 tool-wrapper.bat
-rwxr-xr-x 1 application application   5086 Oct 18  2013 tool-wrapper.sh
-rw-r--r-- 1 application application   2116 Oct 18  2013 version.bat
-rwxr-xr-x 1 application application   1965 Oct 18  2013 version.sh
[application@localhost bin]$ cd ../
[application@localhost apache-tomcat-7.0.47]$ cd ../
[application@localhost opt]$ cd ../
[application@localhost /]$ pwd
/
[application@localhost /]$ cd mfs
[application@localhost mfs]$  ll
total 4
drwxr-xr-x 3 root root 4096 May 19 11:26 apps
[application@localhost mfs]$ ls
apps
[application@localhost mfs]$ cd ../
[application@localhost /]$ ll
total 102
drwxr-xr-x    3 root        root         4096 Mar 17 18:49 apps
dr-xr-xr-x.   2 root        root         4096 Feb 11 05:23 bin
dr-xr-xr-x.   5 root        root         1024 Feb 11 03:20 boot
drwxr-xr-x   16 root        root         3560 Mar  6 10:00 dev
drwxr-xr-x.  76 root        root         4096 May 17 03:33 etc
drwxr-xr-x.   3 root        root         4096 Feb 11 03:28 home
dr-xr-xr-x.  10 root        root         4096 Feb 11 03:19 lib
dr-xr-xr-x.   9 root        root        12288 Feb 11 05:23 lib64
drwx------.   2 root        root        16384 Feb 11 03:15 lost+found
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 media
drwxr-xr-x    3 root        root         4096 May 19 11:26 mfs
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 mnt
drwxr-xr-x.   7 application application  4096 May 15 11:22 opt
dr-xr-xr-x  103 root        root            0 Mar  6 18:00 proc
dr-xr-x---.   5 root        root         4096 May 14 20:06 root
dr-xr-xr-x.   2 root        root        12288 Feb 11 05:23 sbin
drwxr-xr-x.   2 root        root         4096 Feb 11 03:16 selinux
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 srv
drwxr-xr-x   13 root        root            0 Mar  6 18:00 sys
drwxrwxrwt.   5 root        root         4096 May 19 03:46 tmp
drwxr-xr-x.  13 root        root         4096 Feb 11 03:16 usr
drwxr-xr-x.  19 root        root         4096 Feb 11 03:19 var
[application@localhost /]$ 
[application@localhost /]$ 
[application@localhost /]$ 
[application@localhost /]$ 
[application@localhost /]$ 
[application@localhost /]$ 
[application@localhost /]$ chown application:application mfs/
chown: changing ownership of `mfs/': Operation not permitted
[application@localhost /]$ 
[application@localhost /]$ 
[application@localhost /]$ su -
Password: 
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# ls
apache-tomcat-7.0.47.tar.gz  data  grape
[root@localhost ~]# pwd
/root
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# chown application:applicatiolinu 
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# 辮wd
-bash: 辮wd: command not found
[root@localhost ~]# pwd
/root
[root@localhost ~]# ls
apache-tomcat-7.0.47.tar.gz  data  grape
[root@localhost ~]# pwd
/root
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# 
[root@localhost ~]# ls
apache-tomcat-7.0.47.tar.gz  data  grape
[root@localhost ~]# cd ..
[root@localhost /]# ls
apps  boot  etc   lib    lost+found  mfs  opt   root  selinux  sys  usr
bin   dev   home  lib64  media       mnt  proc  sbin  srv      tmp  var
[root@localhost /]# 
[root@localhost /]# 
[root@localhost /]# 
[root@localhost /]# 
[root@localhost /]# chown -r application:application mfs/
chown: invalid option -- 'r'
Try `chown --help' for more information.

[root@localhost /]# chown  application:application mfs/                                                 //修改文件夹得所有者或组


<span style="color: rgb(255, 0, 0);"><strong>chown -hR username:groupname ./目录名
其中:h表示对符号链接也起作用;
R表示对所有子文件也起作用;
后面的用户名和组名用冒号分割;
最后是要修改的目标文件夹;</strong></span>

[root@localhost /]# 
[root@localhost /]# 
[root@localhost /]# 
[root@localhost /]# ll
total 102
drwxr-xr-x    3 root        root         4096 Mar 17 18:49 apps
dr-xr-xr-x.   2 root        root         4096 Feb 11 05:23 bin
dr-xr-xr-x.   5 root        root         1024 Feb 11 03:20 boot
drwxr-xr-x   16 root        root         3560 Mar  6 10:00 dev
drwxr-xr-x.  76 root        root         4096 May 17 03:33 etc
drwxr-xr-x.   3 root        root         4096 Feb 11 03:28 home
dr-xr-xr-x.  10 root        root         4096 Feb 11 03:19 lib
dr-xr-xr-x.   9 root        root        12288 Feb 11 05:23 lib64
drwx------.   2 root        root        16384 Feb 11 03:15 lost+found
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 media
drwxr-xr-x    3 application application  4096 May 19 11:26 mfs
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 mnt
drwxr-xr-x.   7 application application  4096 May 15 11:22 opt
dr-xr-xr-x  105 root        root            0 Mar  6 18:00 proc
dr-xr-x---.   5 root        root         4096 May 14 20:06 root
dr-xr-xr-x.   2 root        root        12288 Feb 11 05:23 sbin
drwxr-xr-x.   2 root        root         4096 Feb 11 03:16 selinux
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 srv
drwxr-xr-x   13 root        root            0 Mar  6 18:00 sys
drwxrwxrwt.   5 root        root         4096 May 19 03:46 tmp
drwxr-xr-x.  13 root        root         4096 Feb 11 03:16 usr
drwxr-xr-x.  19 root        root         4096 Feb 11 03:19 var
[root@localhost /]# ll
total 102
drwxr-xr-x    3 root        root         4096 Mar 17 18:49 apps
dr-xr-xr-x.   2 root        root         4096 Feb 11 05:23 bin
dr-xr-xr-x.   5 root        root         1024 Feb 11 03:20 boot
drwxr-xr-x   16 root        root         3560 Mar  6 10:00 dev
drwxr-xr-x.  76 root        root         4096 May 17 03:33 etc
drwxr-xr-x.   3 root        root         4096 Feb 11 03:28 home
dr-xr-xr-x.  10 root        root         4096 Feb 11 03:19 lib
dr-xr-xr-x.   9 root        root        12288 Feb 11 05:23 lib64
drwx------.   2 root        root        16384 Feb 11 03:15 lost+found
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 media
drwxr-xr-x    3 application application  4096 May 19 11:26 mfs
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 mnt
drwxr-xr-x.   7 application application  4096 May 15 11:22 opt
dr-xr-xr-x  105 root        root            0 Mar  6 18:00 proc
dr-xr-x---.   5 root        root         4096 May 14 20:06 root
dr-xr-xr-x.   2 root        root        12288 Feb 11 05:23 sbin
drwxr-xr-x.   2 root        root         4096 Feb 11 03:16 selinux
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 srv
drwxr-xr-x   13 root        root            0 Mar  6 18:00 sys
drwxrwxrwt.   5 root        root         4096 May 19 03:46 tmp
drwxr-xr-x.  13 root        root         4096 Feb 11 03:16 usr
drwxr-xr-x.  19 root        root         4096 Feb 11 03:19 var
[root@localhost /]# ll
total 102
drwxr-xr-x    3 root        root         4096 Mar 17 18:49 apps
dr-xr-xr-x.   2 root        root         4096 Feb 11 05:23 bin
dr-xr-xr-x.   5 root        root         1024 Feb 11 03:20 boot
drwxr-xr-x   16 root        root         3560 Mar  6 10:00 dev
drwxr-xr-x.  76 root        root         4096 May 17 03:33 etc
drwxr-xr-x.   3 root        root         4096 Feb 11 03:28 home
dr-xr-xr-x.  10 root        root         4096 Feb 11 03:19 lib
dr-xr-xr-x.   9 root        root        12288 Feb 11 05:23 lib64
drwx------.   2 root        root        16384 Feb 11 03:15 lost+found
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 media
drwxr-xr-x    3 application application  4096 May 19 11:26 mfs
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 mnt
drwxr-xr-x.   7 application application  4096 May 15 11:22 opt
dr-xr-xr-x  105 root        root            0 Mar  6 18:00 proc
dr-xr-x---.   5 root        root         4096 May 14 20:06 root
dr-xr-xr-x.   2 root        root        12288 Feb 11 05:23 sbin
drwxr-xr-x.   2 root        root         4096 Feb 11 03:16 selinux
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 srv
drwxr-xr-x   13 root        root            0 Mar  6 18:00 sys
drwxrwxrwt.   5 root        root         4096 May 19 03:46 tmp
drwxr-xr-x.  13 root        root         4096 Feb 11 03:16 usr
drwxr-xr-x.  19 root        root         4096 Feb 11 03:19 var
[root@localhost /]# ls
apps  boot  etc   lib    lost+found  mfs  opt   root  selinux  sys  usr
bin   dev   home  lib64  media       mnt  proc  sbin  srv      tmp  var
[root@localhost /]# cd /
[root@localhost /]# ls
apps  boot  etc   lib    lost+found  mfs  opt   root  selinux  sys  usr
bin   dev   home  lib64  media       mnt  proc  sbin  srv      tmp  var
[root@localhost /]# cd root/
[root@localhost ~]# ls
apache-tomcat-7.0.47.tar.gz  data  grape
[root@localhost ~]# cd data/
[root@localhost data]# ls
log
[root@localhost data]# cd log/
[root@localhost log]# ls
grape
[root@localhost log]# cd grape/
[root@localhost grape]# ls
app  error  sys
[root@localhost grape]# cd error/
[root@localhost error]# ls
Grape-service-error.log.2014-05-14.log
[root@localhost error]# more Grape-service-error.log.2014-05-14.log 
[root@localhost error]# cd ../
[root@localhost grape]# ls
app  error  sys
[root@localhost grape]# cd app/
[root@localhost app]# ls
Grape-service-app.log.2014-05-14.log  Grape-service-app.log.2014-05-15.log  service-invoker.log.2014-05-14
[root@localhost app]# ll
total 56
-rw-r--r-- 1 root root 42593 May 14 21:55 Grape-service-app.log.2014-05-14.log
-rw-r--r-- 1 root root  9727 May 15 11:03 Grape-service-app.log.2014-05-15.log
-rw-r--r-- 1 root root     0 May 14 20:06 service-invoker.log.2014-05-14
[root@localhost app]# ls
Grape-service-app.log.2014-05-14.log  Grape-service-app.log.2014-05-15.log  service-invoker.log.2014-05-14
[root@localhost app]# cd /
[root@localhost /]# ls
apps  boot  etc   lib    lost+found  mfs  opt   root  selinux  sys  usr
bin   dev   home  lib64  media       mnt  proc  sbin  srv      tmp  var
[root@localhost /]# cd /mfs/apps/image/userIcon
[root@localhost userIcon]# ls
[root@localhost userIcon]# ls
[root@localhost userIcon]# pwd
/mfs/apps/image/userIcon
[root@localhost userIcon]# ll
total 0
[root@localhost userIcon]# ll
total 0
[root@localhost userIcon]# cd ..
[root@localhost image]# ll
total 4
drwxr-xr-x 2 root root 4096 May 19 11:26 userIcon
[root@localhost image]# cd /opt/data
[root@localhost data]# ls
log
[root@localhost data]# cd log
[root@localhost log]# ls
grape
[root@localhost log]# cd grape
[root@localhost grape]# ls
app  error  sys
[root@localhost grape]# cd app
[root@localhost app]# ls
Grape-service-app.log.2014-05-15.log  Grape-service-app.log.2014-05-18.log  service-invoker.log.2014-05-16
Grape-service-app.log.2014-05-16.log  Grape-service-app.log.2014-05-19.log
Grape-service-app.log.2014-05-17.log  service-invoker.log.2014-05-15
[root@localhost app]# ll
total 180
-rw-rw-r-- 1 application application 48549 May 15 20:53 Grape-service-app.log.2014-05-15.log
-rw-rw-r-- 1 application application 87314 May 16 21:32 Grape-service-app.log.2014-05-16.log
-rw-rw-r-- 1 application application   140 May 17 21:30 Grape-service-app.log.2014-05-17.log
-rw-rw-r-- 1 application application   497 May 18 21:48 Grape-service-app.log.2014-05-18.log
-rw-rw-r-- 1 application application 23071 May 19 13:01 Grape-service-app.log.2014-05-19.log
-rw-rw-r-- 1 application application     0 May 15 11:22 service-invoker.log.2014-05-15
-rw-rw-r-- 1 application application     0 May 16 10:53 service-invoker.log.2014-05-16
[root@localhost app]# tail -f Grape-service-app.log.2014-05-19.log 
2014-05-19 12:20:54.377 [http-bio-8080-exec-10] INFO  com.saic.grape.controller.UserController -蹇璁板狅煎殓俊楠璇鐮
2014-05-19 12:21:29.058 [http-bio-8080-exec-8] INFO  com.saic.grape.controller.UserController -绋娣璁剧疆姘瀵鐮
2014-05-19 12:22:02.963 [http-bio-8080-exec-2] INFO  com.saic.grape.controller.UserController -澶
                                                                                                 珑ㄦ风诲?
2014-05-19 12:53:57.091 [http-bio-8080-exec-7] INFO  com.saic.grape.controller.UserController -澶
                                                                                                 珑ㄦ风诲?
2014-05-19 12:55:06.328 [http-bio-8080-exec-9] INFO  com.saic.grape.controller.UserController -蹇璁板狅煎殓俊楠璇鐮
2014-05-19 12:55:38.094 [http-bio-8080-exec-1] INFO  com.saic.grape.controller.UserController -澶
                                                                                                 珑ㄦ风诲?
2014-05-19 12:56:51.743 [http-bio-8080-exec-6] INFO  com.saic.grape.controller.UserController -澶
                                                                                                 珑ㄦ风诲?
2014-05-19 12:59:28.703 [http-bio-8080-exec-5] INFO  com.saic.grape.controller.UserController -澶
                                                                                                 珑ㄦ风诲?
2014-05-19 13:00:09.387 [http-bio-8080-exec-3] INFO  com.saic.grape.controller.UserController -澶
                                                                                                 珑ㄦ风诲?
2014-05-19 13:01:35.989 [http-bio-8080-exec-10] INFO  com.saic.grape.controller.UserController -澶
                                                                                                  珑ㄦ风诲?
sdf^H^H^H^H^H^C
[root@localhost app]# ls
Grape-service-app.log.2014-05-15.log  Grape-service-app.log.2014-05-18.log  service-invoker.log.2014-05-16
Grape-service-app.log.2014-05-16.log  Grape-service-app.log.2014-05-19.log
Grape-service-app.log.2014-05-17.log  service-invoker.log.2014-05-15
[root@localhost app]# cd /mfs
[root@localhost mfs]# ls
apps
[root@localhost mfs]# ll
total 4
drwxr-xr-x 3 root root 4096 May 19 11:26 apps
[root@localhost mfs]# cd ../
[root@localhost /]# ls
apps  boot  etc   lib    lost+found  mfs  opt   root  selinux  sys  usr
bin   dev   home  lib64  media       mnt  proc  sbin  srv      tmp  var
[root@localhost /]# ll
total 102
drwxr-xr-x    3 root        root         4096 Mar 17 18:49 apps
dr-xr-xr-x.   2 root        root         4096 Feb 11 05:23 bin
dr-xr-xr-x.   5 root        root         1024 Feb 11 03:20 boot
drwxr-xr-x   16 root        root         3560 Mar  6 10:00 dev
drwxr-xr-x.  76 root        root         4096 May 17 03:33 etc
drwxr-xr-x.   3 root        root         4096 Feb 11 03:28 home
dr-xr-xr-x.  10 root        root         4096 Feb 11 03:19 lib
dr-xr-xr-x.   9 root        root        12288 Feb 11 05:23 lib64
drwx------.   2 root        root        16384 Feb 11 03:15 lost+found
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 media
drwxr-xr-x    3 application application  4096 May 19 11:26 mfs
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 mnt
drwxr-xr-x.   7 application application  4096 May 15 11:22 opt
dr-xr-xr-x  110 root        root            0 Mar  6 18:00 proc
dr-xr-x---.   5 root        root         4096 May 14 20:06 root
dr-xr-xr-x.   2 root        root        12288 Feb 11 05:23 sbin
drwxr-xr-x.   2 root        root         4096 Feb 11 03:16 selinux
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 srv
drwxr-xr-x   13 root        root            0 Mar  6 18:00 sys
drwxrwxrwt.   5 root        root         4096 May 19 03:46 tmp
drwxr-xr-x.  13 root        root         4096 Feb 11 03:16 usr
drwxr-xr-x.  19 root        root         4096 Feb 11 03:19 var
[root@localhost /]#  chmod -R 757 mfs                                   //修改文件夹得读写权限
[root@localhost /]# ll
total 102
drwxr-xr-x    3 root        root         4096 Mar 17 18:49 apps
dr-xr-xr-x.   2 root        root         4096 Feb 11 05:23 bin
dr-xr-xr-x.   5 root        root         1024 Feb 11 03:20 boot
drwxr-xr-x   16 root        root         3560 Mar  6 10:00 dev
drwxr-xr-x.  76 root        root         4096 May 17 03:33 etc
drwxr-xr-x.   3 root        root         4096 Feb 11 03:28 home
dr-xr-xr-x.  10 root        root         4096 Feb 11 03:19 lib
dr-xr-xr-x.   9 root        root        12288 Feb 11 05:23 lib64
drwx------.   2 root        root        16384 Feb 11 03:15 lost+found
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 media
drwxr-xrwx    3 application application  4096 May 19 11:26 mfs
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 mnt
drwxr-xr-x.   7 application application  4096 May 15 11:22 opt
dr-xr-xr-x  113 root        root            0 Mar  6 18:00 proc
dr-xr-x---.   5 root        root         4096 May 14 20:06 root
dr-xr-xr-x.   2 root        root        12288 Feb 11 05:23 sbin
drwxr-xr-x.   2 root        root         4096 Feb 11 03:16 selinux
drwxr-xr-x.   2 root        root         4096 Sep 23  2011 srv
drwxr-xr-x   13 root        root            0 Mar  6 18:00 sys
drwxrwxrwt.   5 root        root         4096 May 19 03:46 tmp
drwxr-xr-x.  13 root        root         4096 Feb 11 03:16 usr
drwxr-xr-x.  19 root        root         4096 Feb 11 03:19 var
[root@localhost /]# pwd
/
[root@localhost /]# cd opt
[root@localhost opt]# cd apache-tomcat-7.0.47/webapps
[root@localhost webapps]# rm -rf Grape-Service Grape-Service.war ROOT
[root@localhost webapps]# cd ../
[root@localhost apache-tomcat-7.0.47]# cd bin
[root@localhost bin]# ./shutdown.sh
Using CATALINA_BASE:   /opt/apache-tomcat-7.0.47
Using CATALINA_HOME:   /opt/apache-tomcat-7.0.47
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.47/temp
Using JRE_HOME:        /opt/jdk1.7.0_45
Using CLASSPATH:       /opt/apache-tomcat-7.0.47/bin/bootstrap.jar:/opt/apache-tomcat-7.0.47/bin/tomcat-juli.jar
[root@localhost bin]# ./startup.sh
Using CATALINA_BASE:   /opt/apache-tomcat-7.0.47
Using CATALINA_HOME:   /opt/apache-tomcat-7.0.47
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.47/temp
Using JRE_HOME:        /opt/jdk1.7.0_45
Using CLASSPATH:       /opt/apache-tomcat-7.0.47/bin/bootstrap.jar:/opt/apache-tomcat-7.0.47/bin/tomcat-juli.jar
[root@localhost bin]# 
[root@localhost bin]# ./startup.sh
Using CATALINA_BASE:   /opt/apache-tomcat-7.0.47
Using CATALINA_HOME:   /opt/apache-tomcat-7.0.47
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.47/temp
Using JRE_HOME:        /opt/jdk1.7.0_45
Using CLASSPATH:       /opt/apache-tomcat-7.0.47/bin/bootstrap.jar:/opt/apache-tomcat-7.0.47/bin/tomcat-juli.jar
[root@localhost bin]# ./shutdown.sh
Using CATALINA_BASE:   /opt/apache-tomcat-7.0.47
Using CATALINA_HOME:   /opt/apache-tomcat-7.0.47
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.47/temp
Using JRE_HOME:        /opt/jdk1.7.0_45
Using CLASSPATH:       /opt/apache-tomcat-7.0.47/bin/bootstrap.jar:/opt/apache-tomcat-7.0.47/bin/tomcat-juli.jar
[root@localhost bin]# cd ../
[root@localhost apache-tomcat-7.0.47]# cd webapps
[root@localhost webapps]# rm -rf Grape-Service Grape-Service.war ROOT
[root@localhost webapps]# cd ../bin
[root@localhost bin]# ./startup.sh
Using CATALINA_BASE:   /opt/apache-tomcat-7.0.47
Using CATALINA_HOME:   /opt/apache-tomcat-7.0.47
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.47/temp
Using JRE_HOME:        /opt/jdk1.7.0_45
Using CLASSPATH:       /opt/apache-tomcat-7.0.47/bin/bootstrap.jar:/opt/apache-tomcat-7.0.47/bin/tomcat-juli.jar
[root@localhost bin]# pwd
/opt/apache-tomcat-7.0.47/bin
[root@localhost bin]# ./shutdown.sh
Using CATALINA_BASE:   /opt/apache-tomcat-7.0.47
Using CATALINA_HOME:   /opt/apache-tomcat-7.0.47
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.47/temp
Using JRE_HOME:        /opt/jdk1.7.0_45
Using CLASSPATH:       /opt/apache-tomcat-7.0.47/bin/bootstrap.jar:/opt/apache-tomcat-7.0.47/bin/tomcat-juli.jar
[root@localhost bin]# ./startup.sh
Using CATALINA_BASE:   /opt/apache-tomcat-7.0.47
Using CATALINA_HOME:   /opt/apache-tomcat-7.0.47
Using CATALINA_TMPDIR: /opt/apache-tomcat-7.0.47/temp
Using JRE_HOME:        /opt/jdk1.7.0_45
Using CLASSPATH:       /opt/apache-tomcat-7.0.47/bin/bootstrap.jar:/opt/apache-tomcat-7.0.47/bin/tomcat-juli.jar
[root@localhost bin]# cd ../
[root@localhost apache-tomcat-7.0.47]# cd ../../
[root@localhost /]# cd mfs
[root@localhost mfs]# ll
total 4
drwxr-xrwx 3 application application 4096 May 19 11:26 apps
[root@localhost mfs]# cd apps
[root@localhost apps]# ll
total 4
drwxr-xrwx 3 application application 4096 May 19 18:55 image
[root@localhost apps]# cd image
[root@localhost image]# ll
total 32
-rw-r--r-- 1 root        root        7989 May 19 18:47 11_1400496458438-thumbnail.jpg
-rw-r--r-- 1 root        root        7989 May 19 18:48 11_1400496520156-thumbnail.jpg
-rw-r--r-- 1 root        root        7972 May 19 18:55 11_1400496932692-thumbnail.jpg
-rw-r--r-- 1 root        root         968 May 19 18:44 d123456_1400496293200-thumbnail.jpg
drwxr-xrwx 2 application application 4096 May 19 18:55 userIcon
[root@localhost image]# 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值