1.首先第一步创建安全组 https://help.aliyun.com/document_detail/25468.html?spm=a2c4g.11186623.2.13.9f852df3NTPGCx#concept-ocl-bvz-xdb 2.添加安全组规则 有快速添加也有自定义添加 像mysql就使用快速添加 tomcat就是用自定义 https://help.aliyun.com/document_detail/25471.html?spm=a2c4g.11186623.2.16.55d41f6c82r15v#concept_sm5_2wz_xdb