【手把手详细演示如何部署上线Stable Diffusion】
我看群里最近在讨论Stable Diffusion,但是由于电脑配置问题可能不支持集成Stable Diffusion,下面我给大家讲解一下怎么在阿里云上白嫖Stable Diffusion7天(也不是完全白嫖,可能需要20块钱)第一步用浏览器打开:```阿里云资源领用中心入口:https://click.aliyun.com/m/1000373164/```**注:没有登录或注册的自己登录注册一下**打开之后你会看到下面界面!(data/attachment/forum/202306/19/122859gkjkw6r2rwx3tkzz.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")然后点击“容器”选择“容器服务 Serverless 版 ASK” 选择个人版 点击免费试用,如下图!(data/attachment/forum/202306/19/111745ttt5rmbbxueb2xek.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")!(data/attachment/forum/202306/19/112158eojq7qo2ololfhj6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")这里选择地域后点击“已完成服务角色的授权”进入如下界面点击“同意授权”!(data/attachment/forum/202306/19/112348qswkawsoclw8soxj.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")同意授权之后回到之间的界面,点击“我已同意....”,如下图,然后点击立即试用!(data/attachment/forum/202306/19/112519zxfgj4xlbs44c63e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")这个时候就已经成功一半了,我们点击标题进入集群,如下图!(data/attachment/forum/202306/19/112701hx965oue58e5rjut.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")点击后进入如下界面,点击“产品控制台”!(data/attachment/forum/202306/19/112845aqzudqq8ysnq2fj5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")然后你会看到如下界面,系统正在为我们创建集群,我们要等他初始话成功!(data/attachment/forum/202306/19/113049avmpu4e7s9nszukv.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")然后点击“集群名称/ID”进入如下界面,继续点击“连接信息”安装“安装和设置 kubectl 客户端”,具体怎么安装和设置文档中已经说的很详情,这里就不再赘述!(data/attachment/forum/202306/19/113357t5o7l6l6t71k11zu.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")!(data/attachment/forum/202306/19/113735gk1gs1x4kkb2bzfr.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")这里重点将一下第二步。这里只讲win电脑,其他自己搜索一下哈,或者评论区问我哈!(data/attachment/forum/202306/19/114031hsdj7ltzjladeavf.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")进入如下界面输入“echo %USERPROFILE%”得到一个地址 ,然后拿到地址后 ,打开你的计算机进入这个文件夹下面,进入后创建文件夹“.kube”,然后创建config文件,打开config文件!(data/attachment/forum/202306/19/115143ezi404cxrcze06lz.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")!(data/attachment/forum/202306/19/115547pc423ayg2fzu2cll.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")打开后将下面内容复制到config文件中去,复制完后保存!(data/attachment/forum/202306/19/115824aizzsdik7adfsic8.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")然后再进入cmd命令 输入“`kubectl` get nodes”会返回你一些信息,这个时候说我们可以成功连接了!(data/attachment/forum/202306/19/120225wyna3y9jj3jm1mvm.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")回到浏览器,这里点击“绑定公网ip”进入如下界面,点击创建EIP!(data/attachment/forum/202306/19/121916wro4ol88ik4qd42r.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")!(data/attachment/forum/202306/19/122242n6ya2dleypeappd6.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")!(data/attachment/forum/202306/19/122311jahxqaxifyswjhws.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")购买成功后 这里就可以选择已有的ip!(data/attachment/forum/202306/19/122453iilffcclcplce01e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")然后我们回到浏览器点击 “无状态”再点击“使用镜像创建”!(data/attachment/forum/202306/19/120445kr49eudqssv7llvs.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")进入如下界面,输入名称只要符合要求就行,可以谁便写 我这里写的是“stablediffusion”,副本数量选择写“1”,然后点击下一步!(data/attachment/forum/202306/19/120628ammghijgio0gmoiv.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")填写下面信息如下图,填写完成后点击下一步**镜像名称:yunqi-registry.cn-shanghai.cr.aliyuncs.com/lab/stable-diffusion**镜像标签:v1.2.0启动执行-命令:启动执行-参数:!(data/attachment/forum/202306/19/121035ze2z9ox922tgtxh2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")进入如下界面,点击“服务创建”!(data/attachment/forum/202306/19/121338ciz2q1i121mombii.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")!(data/attachment/forum/202306/19/121417w5zocc5kccok5joc.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")!(data/attachment/forum/202306/19/121444b9fi5rcbk99iqqfi.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")!(data/attachment/forum/202306/19/121538me141n8iz52n88hl.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")然后我们就可以看到正在部署了 ,等他部署完成就行了!(data/attachment/forum/202306/19/121641anevlvt266dagaen.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")等到部署成功后,点击“网络”“服务”,进入如下界面,点击“外部端点”就可以访问Stable Diffusion了!!!!!(data/attachment/forum/202306/19/122623ljl6jn7f6fk7n1zy.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1920 "image.png")注意:这个是免费使用7天 公网IP是要收费的,我们选择的安量收费,等到7天过去别忘记进入控制台吧这个服务关闭,要不然会扣钱的!!!注意:这个是免费使用7天 公网IP是要收费的,我们选择的安量收费,等到7天过去别忘记进入控制台吧这个服务关闭,要不然会扣钱的!!!注意:这个是免费使用7天 公网IP是要收费的,我们选择的安量收费,等到7天过去别忘记进入控制台吧这个服务关闭,要不然会扣钱的!!! ...展开
收起