Linux/Mac用户入门指南 ######################## .. _hello-world-for-linux-and-mac: 首先创建一个应用,登录新浪云,访问 `我的应用 `_ ,单击“创建新应用” .. image:: /images/helloworld-for-linux-mac-1.png 填写二级域名,单击“创建应用”,这个域名就是您应用的访问地址 .. image:: /images/helloworld-for-linux-mac-2.png 现在您可以关闭浏览器,以下操作将通过代码行完成。 首先,在本地创建一个新的Git仓库,并添加一个远程仓库 *sae* ,地址为:https://git.sinacloud.com/应用名 。 .. code-block:: console $ mkdir myhello $ cd myhello $ git init $ git remote add sae https://git.sinacloud.com/myhello 创建页面index.html内容为"hello world",然后将该目录下所有文件提交到Git中。 .. code-block:: console $ echo "hello world" > index.html $ git add . $ git commit -m "Initial commit" 最后,将本地的代码修改push到远程仓库 *sae* 的分支 *1* 中。 .. code-block:: console $ git push sae master:1 此时,如果是第一次使用,则需要进行身份认证,按提示输入用户名和密码; .. image:: /images/helloworld-for-linux-mac-4.png .. note:: 这里输入的密码为安全密码(并非微博密码,如已启用微盾动态密码,则此处填写“安全密码”+“微盾动态密码” ) 现在,在浏览器中输入您应用的地址,就可以马上访问了;本例地址为 http://myhello.sinaapp.com (其中 *myhello* 为您的应用名称) .. image:: /images/helloworld-for-linux-mac-7.png 下面选择一门你喜欢的语言,我们开始学习和开发我们在新浪云上第一个应用吧。 :doc:`PHP <../php/tutorial>` :doc:`Java <../java/tutorial>` :doc:`Python <../python/tutorial>`