整理下载tomcat后遇到情况查找资料如下:
下载了onethink,但是文件是这样的:
drwxr-xr-x 15 andy admin 510 10 12 17:48 ./
drwxr-xr-x 39 andy admin 1326 10 12 17:49 ../
drwxr-xr-x@ 9 andy admin 306 10 12 17:43 Addons/
drwxr-xr-x@ 7 andy admin 238 10 12 17:43 Application/
drwxr-xr-x@ 3 andy admin 102 10 12 17:43 Data/
drwxr-xr-x@ 7 andy admin 238 10 12 17:43 Public/
-rwxr-xr-x@ 1 andy admin 2881 10 12 17:43 README.md*
drwxr-xr-x@ 2 andy admin 68 10 12 17:43 Runtime/
drwxr-xr-x@ 12 andy admin 408 10 12 17:43 ThinkPHP/
drwxr-xr-x@ 6 andy admin 204 10 12 17:43 Uploads/
-rwxr-xr-x@ 1 andy admin 1180 10 12 17:43 index.php*
-rwxr-xr-x@ 1 andy admin 1105 10 12 17:43 install.php*
-rwxr-xr-x@ 1 andy admin 1852 10 12 17:43 license.txt*
-rwxr-xr-x@ 1 andy admin 9183 10 12 17:43 logo.png*
-rwxrwxrwx@ 1 andy admin 6271 10 12 17:43 readme.html*
我们可以查看他的意思:
andy@AndyMacBookPro:/usr/local/webdata/onethink$ ls -leO@
total 72
drwxr-xr-x@ 9 andy admin - 306 10 12 17:43 Addons
com.apple.quarantine57
drwxr-xr-x@ 7 andy admin - 238 10 12 17:43 Application
com.apple.quarantine57
drwxr-xr-x@ 3 andy admin - 102 10 12 17:43 Data
com.apple.quarantine57
drwxr-xr-x@ 7 andy admin - 238 10 12 17:43 Public
com.apple.quarantine57
-rwxr-xr-x@ 1 andy admin - 2881 10 12 17:43 README.md
com.apple.quarantine57
drwxr-xr-x@ 2 andy admin - 68 10 12 17:43 Runtime
com.apple.quarantine57
drwxr-xr-x@ 12 andy admin - 408 10 12 17:43 ThinkPHP
com.apple.quarantine57
drwxr-xr-x@ 6 andy admin - 204 10 12 17:43 Uploads
com.apple.quarantine57
-rwxr-xr-x@ 1 andy admin - 1180 10 12 17:43 index.php
com.apple.quarantine57
-rwxr-xr-x@ 1 andy admin - 1105 10 12 17:43 install.php
com.apple.quarantine57
-rwxr-xr-x@ 1 andy admin - 1852 10 12 17:43 license.txt
com.apple.quarantine57
-rwxr-xr-x@ 1 andy admin - 9183 10 12 17:43 logo.png
com.apple.quarantine57
-rwxrwxrwx@ 1 andy admin - 6271 10 12 17:43 readme.html
com.apple.quarantine57
这个@代表的时更多的一些属性,具体含义有些老外也不懂,比如这里:
http://superuser.com/questions/28384/what-should-i-do-about-com-apple-quarantine
可以用这个命令来去除这个属性:xattr -d com.apple.quarantine ./*
andy@AndyMacBookPro:/usr/local/webdata/onethink$ xattr -d com.apple.quarantine ./*
andy@AndyMacBookPro:/usr/local/webdata/onethink$ ll
total 72
drwxr-xr-x 15 andy admin 510 10 12 17:48 ./
drwxr-xr-x 39 andy admin 1326 10 12 17:49 ../
drwxr-xr-x 9 andy admin 306 10 12 17:43 Addons/
drwxr-xr-x 7 andy admin 238 10 12 17:43 Application/
drwxr-xr-x 3 andy admin 102 10 12 17:43 Data/
drwxr-xr-x 7 andy admin 238 10 12 17:43 Public/
-rwxr-xr-x 1 andy admin 2881 10 12 17:43 README.md*
drwxr-xr-x 2 andy admin 68 10 12 17:43 Runtime/
drwxr-xr-x 12 andy admin 408 10 12 17:43 ThinkPHP/
drwxr-xr-x 6 andy admin 204 10 12 17:43 Uploads/
-rwxr-xr-x 1 andy admin 1180 10 12 17:43 index.php*
-rwxr-xr-x 1 andy admin 1105 10 12 17:43 install.php*
-rwxr-xr-x 1 andy admin 1852 10 12 17:43 license.txt*
-rwxr-xr-x 1 andy admin 9183 10 12 17:43 logo.png*
-rwxrwxrwx 1 andy admin 6271 10 12 17:43 readme.html*
后来进入目录发现目录下面的文件还是带有@属性,我们到根目录加一个-r就好了:xattr -d -r com.apple.quarantine ./*