upload files?

Jim Ohlstein jim at ohlste.in
Sun Sep 6 21:44:51 MSD 2009


Igor Sysoev wrote:
> On Sun, Sep 06, 2009 at 10:32:06AM -0400, ronin wrote:
> 
>> error info:
>> Warning: REQUEST_BODY_FILE: open('/dev/shm/client_body_temp/0000000002') failed: No such file or directory (2) in Unknown on line 0
> 
> Who show this error ?
> BTW, does Linux allow to create subdirectories in /dev/shm ?
> 
> 


Yes:

[root at saturn ~]# uname -sr
Linux 2.6.18-128.2.1.el5
[root at saturn ~]# mount
/dev/sda1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb1 on /falcon type ext2 (rw,noatime)
[root at saturn ~]# ls /dev/shm
[root at saturn ~]# mkdir /dev/shm/test
[root at saturn ~]# ls /dev/shm
test
[root at saturn ~]# touch /dev/shm/test/testfile
[root at saturn ~]# ls -lR /dev/shm
/dev/shm:
total 0
drwxr-xr-x 2 root root 60 Sep  6 13:41 test

/dev/shm/test:
total 0
-rw-r--r-- 1 root root 0 Sep  6 13:41 testfile
[root at saturn ~]# echo "sometext" > /dev/shm/test/testfile
[root at saturn ~]# cat /dev/shm/test/testfile
sometext
[root at saturn ~]#

Jim





More information about the nginx mailing list