Amepad lt(tmpfs)
View more presentations from udagawa-satoshi
mkdir -p /tmpfs/proxy_temp
#tmpfsを200Mで作成
mount -t tmpfs -o size=200m /dev/shm /tmpfs/proxy_temp
#nginx停止
/etc/init.d/nginx stop
mv /usr/local/nginx_LB/proxy_temp /usr/local/nginx_LB/proxy_temp.bak
ln -s /tmpfs/proxy_temp /usr/local/nginx_LB/proxy_temp
chown nobody:root /tmpfs/proxy_temp /usr/local/nginx_LB/proxy_temp
ls -l /usr/local/nginx_LB/
ls -ld /tmpfs/proxy_temp
#nginx起動
/etc/init.d/nginx start
0 件のコメント:
コメントを投稿