1.命令行方式 转自http://blog.youkuaiyun.com/steven6977/article/details/10567719 2.客户端方式 转自http://www.cocoachina.com/ios/20160212/15024.html