It’s worked when I create it manually. Thanks for your kindly guide. Simon
On 2013年10月25日, at 下午10:22, Venkatesh Srinivas <[email protected]> wrote: > On Fri, Oct 25, 2013 at 5:59 AM, k simon <[email protected]> wrote: >> I adjust the squid configuration, now it report: >> >> “FATAL: Ipc::Mem::Segment::create failed to >> shm_open(/squid-squid-page-pool.shm): (13) Permission denied” >> >> Does anyone could give me some clue to workaroud it ? >> >> >> Regards >> Simon > > squid's Ipc::Mem::Segment::create() uses shm_open to create a POSIX > shared memory segment; on DragonFly, SHM segments are just files which > live in the specified path. ('/squid-squid-page-pool.shm' in this > case); your squid daemon's user likely does not have permission to use > that file. > > On some other platforms (Linux), shm segments appear as files also, > but in a subtree of the namespace instead -- often /dev/shm. So your > squid shm segment would be /dev/shm/squid-squid-page-pool.shm, in what > is usually a tmpfs filesystem. > > Some workarounds -- patch squid to create its shm file in /tmp/<...> > or some other common path; or if the shm segment is opened w/o O_EXCL > and you don't mind a file in /, create it manually and set permissions > so squid can read/write it. > > HTH, > -- vs;
