Oh, I have found the reason. The file owner of 'varnishd' is root and set with setuid. The account of admin can start the varnishd, but It can't access the C source file created by varnishd.
2012/3/19 姚伟斌 <[email protected]>: > Hi folks, > > In our company, all the packets have its specific install directory > and account. We use the account named 'admin' to start the varnishd > daemon. But when I typed the start command. It shows the error below: > ##################################################### > bash-3.2$ /opt/company/install/varnish/sbin/varnishd -P > /home/admin/varnish/pid/varnish.pid -a :8888 -f > /home/admin/varnish/conf/varnish.vcl -n /home/admin/varnish/cache -T > 0.0.0.0:2000 -t 120 -w 5,1000,120 -u admin -g admin > Message from C-compiler: > cc1: error: ./vcl.RBz_GFcY.c: Permission denied > Running C-compiler failed, exit 1 > > VCL compilation failed > ####################################################### > > I want to know the VCL compile directory and then I can specify the > file permission. > > Thanks. _______________________________________________ varnish-dev mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
