1、督程: test_sup
2、子进程:test_gen_server
3、子进程规格Spec: { test_gen_server,
{test_gen_server, start_link, []},
permanent,
4000,
worker,
[test_gen_server] }
4、启动子进程:supervisor:start_child(test_sup,Spec).
5、结束子进程:supervisor:terminate_child(test_sup,test_gen_server).
6、删除子进程规范:supervisor:delete_child(test_sup,test_gen_server).
7、再次启动子进程:supervisor:start_child(test_sup,Spec).