2019年3月

折腾了半天,发现docker太重了,暂时不适合用

curl -fsSL get.docker.com -o get-docker.sh | bash; 
docker search centos, pull, images, 
docker run -d -it -p 8888:8888  centos
ps, start/stop/restart, docker commit -m "bt" -a "swds" 897937ede755  swds/centos:bt

在输出headers之前设置cookie

setcookie("xx", $_POST['xx'], time()+31536000); //

读取cookie

if (isset($_COOKIE["xx"])) { $xx= $_COOKIE["xx"];} else { $xx='';}