添加阿里源
zypper lr #查看源
zypper mr -da #禁用所有源
#添加源:
zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.3/repo/non-oss ali-d1
zypper ar -fc https://mirrors.aliyun.com/opensuse/distribution/leap/15.3/repo/oss ali-d2
zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap/15.3/oss ali-up1
zypper ar -fc https://mirrors.aliyun.com/opensuse/update/leap/15.3/non-oss ali-up2
zypper ref #刷新所有源
zypper lr #查看源
然后可以通过zypper安装依赖和下载包,类似yum命令
zypper install gcc-c++ make libtool zlib zlib-devel openssl openssl-devel pcre pcre-devel #安装nginx相关依赖