这里所说的网站不仅仅是一个html代码,而是告诉你如何外网访问一个搭建在服务器上的网站。
做到这一步需要做到以下几点:
1. 域名
2. 服务器(虚拟主机)
3. 可执行的前端代码
关于第三点就不用多说了,相信各位程序员都清楚这一基础。目前我尝试过两种方式,第一种:新浪云服务(域名和服务器均已搭建好);第二种:老薛主机(可自由搭配:1.外部购买域名加老薛虚拟主机;2.统一老薛)。今天先讲第一种,可类比腾讯云、阿里云。 百度搜索新浪云sae服务,进入官网,有微博账号的可以直接登录,没有的就自己注册。这我就不再多说,相信大家都能解决好。下面附上整个新浪云使用流程:
Step1在搜索引擎搜索“新浪云”或“新浪sae”,进入官网。

Step2主页右上方点击“微博登录”,如无微博账号,可先注册。

Step3在新页面输入微博账号及密码,登录。
Step4进入主页后注意查看虚拟货币“云豆”的余额,及时充值,以防数据流失。

Step5在“我的产品”栏点击“云应用SAE”或者光标指向主页左上角“控制台”,在下拉列表中点击“云应用SAE”。进入如下界面。




若需创建新应用,
Step6点击“创建新应用”。在弹出对话框点击“继续创建”。

Step7选择新应用的部署环境、云应用配置和应用信息后,确认服务价格后,即可点击“创建应用”,完成

若已有应用,无需创建,
Step6点击“应用信息”栏中的链接

Step7点击左侧任务栏的“应用”一项,在下拉列表中点击“代码

Step8点击“在线编辑”蓝色按钮,亦可“上传代码包”(请提前将代码压缩打包为不大于100M的zip格式

Step9在弹出对话框中输入密码后,点击“安全验证”
Step10进入如下界面后,可选择点击左上方的三个图标,以“新建文件”、“新建文件夹”或“上传文件”。

Step11点击第二个图标,为新任务新建文件夹,以保持空间整洁
Step12点击进入新文件夹后,从本地选择文件,点击“上传”。
Step13右键单击相关文件,可进行“在线编辑”“url访问”和“删除”

Step14编辑完成后,点击右上角“全部保存”。

Step15最后通过url访问,查看效果。
亦可复制地址栏中地址http://1.cuctech.applinzi.com/sinasae/index.html,进行其他后续操作
End
网友评论