1.5G -Xmx1008M -Xms1008M -Xmn336M -XX:MaxMetaspaceSize=128M -XX:MetaspaceSize=128M 2G -Xmx1344M -Xms1344M -Xmn448M -XX:MaxMetaspaceSize=192M -XX:MetaspaceSize=192M 3G -Xmx2048M -Xms2048M -Xmn768M -XX:MaxMetaspaceSize=256M -XX:MetaspaceSize=256M 4G -Xmx2688M -Xms2688M -Xmn960M -XX:MaxMetaspaceSize=256M -XX:MetaspaceSize=256M 5G -Xmx3392M -Xms3392M -Xmn1216M -XX:MaxMetaspaceSize=512M -XX:MetaspaceSize=512M 6G -Xmx4096M -Xms4096M -Xmn1536M -XX:MaxMetaspaceSize=512M -XX:MetaspaceSize=512M 7G -Xmx4736M -Xms4736M -Xmn1728M -XX:MaxMetaspaceSize=512M -XX:MetaspaceSize=512M 8G -Xmx5440M -Xms5440M -XX:MaxMetaspaceSize=512M -XX:MetaspaceSize=512M
mkdir halo_root cd halo_root
docker run -it -d -e JVM_XMS=1344M -e JVM_XMX=1344M -e JVM_OPTS='-Xmn448M -XX:MaxMetaspaceSize=192M -XX:MetaspaceSize=192M' --name halo_ok -p 8090:8090 -v `pwd`:/root/.halo --net host --restart=unless-stopped halohub/halo:1.6.1
CREATE database userdb ; CREATE USER 'user'@'%' IDENTIFIED BY 'psdpsd'; grant all privileges on userdb.* to 'user'@'%'
revoke all on db.* from 'user'@'%' ################# show grants for db_user
chmod -R u+rwX,go+rX,go-w ./
find ./ -type d -print0 | xargs -0 chmod 0755
find ./ -type f -print0 | xargs -0 chmod 0644
fastcgi_cache_path /tmp/nginx_cache levels=1:2 keys_zone=MYAPP:6000m inactive=720m; fastcgi_cache_key $scheme$request_method$host$request_uri;
set $skip_cache 1; if ($request_uri ~* "^/i/[0-9]+$" ) { set $skip_cache 0; } location ~ .php { fastcgi_pass 127.0.0.1:9008; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root/index.php; fastcgi_param SCRIPT_NAME /index.php; fastcgi_param PATH_INFO $request_uri; fastcgi_cache MYAPP; fastcgi_cache_valid 200 40m; fastcgi_ignore_headers Expires ; fastcgi_cache_bypass $skip_cache; fastcgi_no_cache $skip_cache; add_header X-nx-Cache "$upstream_cache_status - $upstream_response_time"; }
docker pull openresty/openresty docker run -it --name openresty -p 80:80 openresty/openresty mkdir -p /data/openresty/conf docker cp openresty:/usr/local/openresty/nginx/conf/nginx.conf /data/openresty/conf docker rm -f openresty docker run -it -p 80:80 --name openresty --restart always -v /data/openresty/conf/nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf -v /etc/localtime:/etc/localtime openresty/openresty
location / { if ($remote_addr ~ "^10\.10\.1\.1[0-9]+$") { return 533; } # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. # try_files $uri $uri/ =404; }