阿里云服务器WEB环境搭建与网站上线

本教程适用于新手站长,即使是电脑小白,只要你跟着教程的3个步骤,2小时内就能搭建出一个属于自己的网站,非常简单高效,后期的管理和运维都能上手。

第一步云服务器购买、系统安装

1、选择你需要的服务器进行购买。(若已经购买过,直接略过第一步)

PS:第一次购云服务器可以免费试用一个月,免费云服务器领取地址

2、登录自己的账号(阿里云支持淘宝和支付宝同步登录),然后在首页找到云服务器ECS购买页面,新手建议根据自己网站的业务预估,选择相应的配置,一般来说2核4G就能满足大部分用户的需求。

登录阿里云

3、选择相应配置:

地域:可以随意选择,区别不大

实例:推荐选择2核4G(若预算较低,可选择最低配置1核1G,以后再升级)

公共镜像:选择CentOS 7.6 64位

储存:系统盘会自动添加40G,如果预估网站内容较多,可以自己再添加一块数据盘,这里就相当于个人电脑的硬盘。

网络:推荐默认选择

公共带宽:推荐最低配置1M,以后根据需求添加即可

安全组:网站http需要开启80端口,https需要开启443端口

系统配置:设置自己的登录密码即可。用户名默认:root

选择ECS服务器配置 选择ECS服务器镜像 选择ECS服务器网络、安全组 设置ECS服务器用户名,密码

第二步、web环境部署与配置

当服务器购买并安装完CentOS后(相当于给电脑装上了系统)我们就可以给它配置网站运行需要的环境了网站运行环境需要Nginx(Apache)+php+mysql。安装了这三种程序在服务器上面就能运行网站了这里推荐新手使用宝塔一键安装非常简单,下面就给大家详细演示一下。

1、配置安全组:点击左侧网络与安全-安全组,并且放行宝塔面板访问需要的8888端口。

安全组

2、选择公网入方向然后新建规则也可以直接在入方向放行8888端口并开放所有ip访问点击确定即可。

宝塔端口8888

放行8888端口

3、登录服务器:下载putty用来连接服务器的(这个可以自行百度下载)输入服务器IP地址用户名和密码连接上服务器。(Linux系统用户名为root密码就是你购买服务器时设置的密码)

putty登录服务器 输入用户名root 输入ECS服务器密码 阿里云服务器登录成功

4、安装宝塔面板Linux安装宝塔只需要一句代码将下面代码复制到putty里面然后回车或者鼠标右键开始安装大概需要10分钟宝塔面板就会自行安装完成。

命令yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

宝塔安装命令行 选择Y

完成后会出现宝塔面板的初始登录地址、登录用户名、密码把这个记下来存在自己电脑上面之后登录时候需要使用。

保存宝塔登录地址,用户名,密码

5、登录宝塔面板管理自己的服务器在浏览器输入http://你的IP:8888/然后输入刚才记录下来的用户名和密码登录到宝塔面板首次登录会提示安装LAMP还是LNMP这个按默认选择就行这个就是在安装网站运行环境LAMP=(Linux/Apache/MySQL/PHP);LNMP=Linux/Nginx/MySQL/PHP)。

浏览器登录宝塔 一键安装web环境 等待安装完成

6、完成了上面的所有步骤现在我们的服务器就具备了网站运行所需要的环境了而且我们可以通过宝塔面板来管理自己的服务器。web环境部署与配置就算完成了是不是非常简单。

敲重点1、开放宝塔登录8888端口;2、putty登录服务器;3、运行宝塔安装命令;4、登录宝塔;5、按提示安装网站运行环境。

 网站项目搭建上线

1、创建网站宝塔面板新建网站数据库填写自己的域名相当于通过宝塔面板添加我们自己的网站。

添加新网站 新建域名、数据库

2、源码上传将我们网站的源代码下载到本地电脑然后上传到网站根目录解压就。站长就以WordPress为例(其他网站程序同理)给大家演示一下操作流程。

网站根目录 上传源代码 添加文件 开始上传 解压 剪切WordPress文件到根目录 剪切 粘贴

3、网站上线上传完程序后我们在浏览器输入自己的域名(这里店长输入的服务器IP地址)就会跳转到WordPress安装流程填写数据库数据库名密码这个可以在宝塔数据库里面查看然后填写自己的网站名账号密码最后我们先屏蔽搜索引擎等网站内容编辑好之后再上线。

浏览器输入域名或者ip 开始安装WordPress 点击管理数据库 找到数据库名,用户名,密码 输入到WordPress安装地址 输入网站基本信息 WordPress后台登录 WordPress前台

最后:阿里云正在搞活动,需要服务器的朋友可以了解参考一下。

PS:阿里云服务器优惠券领取地址:点击领取

 

相关推荐

60 条评论

  1. Duaguevem

    levitra mg [url=https://acialisd.com/]order cialis[/url] Viagra In Holland Cialis Viagra Oder Cialis Erfahrung

  2. very cheap viagra

    [url=https://frviagrafrance.com/]wow where can i buy viagra[/url]
    viagra vente

    wow where can i buy viagra

  3. link for you dosage viagra

    [url=https://viagraonline20up.com/]generic viagra price uk cheap[/url]
    forum achat viagra ciali

    viagra ventas

  4. free viagra no prescription

    [url=https://viagraonline20up.com/]cheap viagra prices 100mg[/url]
    online tablets viagra

    viagra y captopril

  5. viagra de india segura

    [url=https://viagraonline20up.com/]buy generic viagra[/url]
    where can i buy viagra cream

    viagra ohne rezept empfehlung

  6. order viagra in the us

    [url=https://viagraonline20up.com/]viagra[/url]
    take viagra best results

    viagra online irrational

  7. viagra nome generico

    [url=https://viagraonline20up.com/]viagra ventas[/url]
    viagra for sales in manila

    viagra license expiration uk

  8. click here pill price cialis

    [url=https://cialisgers1.com/]look here cialis england[/url]
    look here cialis england

    buy cialis 28 online

  9. cheap usa cialis tablets

    [url=https://cialisgers1.com/]buy cialis[/url]
    professionnel de cialis lilly

    cialis farmacia quanto costa

  10. buy viagra in montenegro

    [url=https://viagraonline20up.com/]viagra pille frau[/url]
    online viagra

    mejor precio viagra genrico

  11. venta de cialis en andorra

    [url=https://cialisgers1.com/]buy generic cialis[/url]
    cialis generico e affidabile

    images cialis generic

  12. levitra 2cialis

    [url=https://cialisgers1.com/]buy cialis online[/url]
    levitra 2cialis

    private prescription cialis

  13. viagra e tachicardi

    [url=https://viagratodaybest.com/]viagra et driv[/url]
    buy generic viagra mexico

    viagra generika holland kaufen

  14. link for you dosage viagra

    [url=https://viagraonline20up.com/]buy viagra johor baharu[/url]
    generic viagra

    viagra approval date

  15. il viagra danneggia la vist

    [url=https://viagratodaybest.com/]online viagra[/url]
    canadian viagra

    viagra 25 mg rezeptfrei

  16. viagra for sales in manila

    [url=https://viagraonline20up.com/]buy viagra[/url]
    nomes do generico do viagra

    i use it viagra 100 mg

  17. viagra webpharmacy

    [url=https://viagratodaybest.com/]buy viagra computer[/url]
    viagra online

    viagra online fiable

  18. fda approved canadian viagra

    [url=https://viagratodaybest.com/]online viagra[/url]
    viagra generic

    achat viagra generique pfizer

  19. viagra side effect stuffy nose

    [url=https://viagraonline20up.com/]viagra cheap[/url]
    viagra buy uk amsterdam

    viagra with overnight shipping

  20. acheter viagra 50 mgs

    [url=https://viagratodaybest.com/]buy generic viagra[/url]
    viagra

    generic viagra with bonus

  21. free viagra australia

    [url=https://viagraonline20up.com/]healthymanviagrareviews[/url]
    viagra in tschechien

    buy viagra in montenegro

  22. ed non prescription viagra

    [url=https://viagratodaybest.com/]where to get viagra in uk[/url]
    viagra o simila

    fake viagra

  23. viagra quand on est jeun

    [url=https://viagraonline20up.com/]viagra generic[/url]
    viagra online

    can we use viagra in islamic

  24. achat viagra generique pfizer

    [url=https://viagratodaybest.com/]acheter viagra veritable[/url]
    viagra rouge

    viagra en belgique

  25. india de 50 mg viagra barata

    [url=https://viagratodaybest.com/]viagra prix levitr[/url]
    viagra cheap

    how long can we use viagra

  26. viagra generico vendas

    [url=https://viagraonline20up.com/]generic viagra[/url]
    bestellen viagra gnsti

    viagra dapoxetine with

  27. street viagra manila

    [url=https://viagratodaybest.com/]west kanye viagra up stay[/url]
    viagra cialis generika

    viagra allergic react627ion

  28. cheap viagra mastercard

    [url=https://viagratodaybest.com/]generic viagra[/url]
    buy generic viagra

    viagra effetto durata

  29. can diabetics use viagra

    [url=https://viagraonline20up.com/]buy viagra online[/url]
    viagra cheap

    order viagra in the us

  30. only now viagra 50 mg

    [url=https://viagratodaybest.com/]viagra online[/url]
    only here buy real viagra

    where uk buy viagra can

  31. natural power herbal viagra

    [url=https://viagraonline20up.com/]generic viagra[/url]
    viagra getting cheaper

    viagra license expiration uk

  32. canada in buy viagra

    [url=https://viagratodaybest.com/]viagra online[/url]
    viagra cheap

    ed non prescription viagra

  33. viagra allergic react627ion

    [url=https://viagratodaybest.com/]buy viagra online[/url]
    tesco viagra stores

    price tag for viagra

  34. indian viagra alternative

    [url=https://viagrabuyggfd.com/]wow express viagra delivery[/url]
    canadian viagra

    viagra usage without ed

  35. high dose viagra

    [url=https://viagraonline20up.com/]viagra getting cheaper[/url]
    viagra

    i use it viagra 100 mg

  36. buy viagra california

    [url=https://viagrabuyggfd.com/]cheap viagra[/url]
    buy generic viagra

    next generic viagra price best

  37. thailand viagra generic

    [url=https://viagrabuyggfd.com/]viagra online sin recet[/url]
    cheap viagra no perscription

    wirkung viagra lange

  38. viagra canada patent

    [url=https://viagrabuyggfd.com/]viagra tabs australia buy[/url]
    bestlla viagra

    usefull link viagra mail order

  39. blueberry like viagra

    [url=https://viagrabuyggfd.com/]viagra pillola costo[/url]
    viagra forums

    only now rx online viagra

  40. fes

    viagra benidorm

    [url=https://viatrustedonline.com/]2 taking viagra[/url]
    viagra online

    click now viagra 50 mg tablets

  41. fes

    viagra kosztuje

    [url=https://viatrustedonline.com/]viagra online[/url]
    generic viagra

    prezzo viagra da 50 mg

  42. fes

    viagra 50 mg effet

    [url=https://viatrustedonline.com/]buy viagra[/url]
    viagra benidorm

    viagra 25 mg ohne rezept

  43. fes

    tienda de pldoras de viagra

    [url=https://viatrustedonline.com/]viagra online[/url]
    buy viagra online

    costo viagra da 50 mg

  44. fes

    true viagra at cheap prices

    [url=https://viatrustedonline.com/]buy viagra[/url]
    wow look it sale viagra

    canadian pharmacy and viagra

  45. fes

    click now viagra 50 mg tablets

    [url=https://viatrustedonline.com/]viagra[/url]
    cheap viagra

    viagra comprime

  46. fes

    can a healthy male use viagra

    [url=https://viatrustedonline.com/]online viagra[/url]
    nombres genericos del viagra

    viagra generique inde

  47. fes

    cialis viagra billig

    [url=https://viatrustedonline.com/]viagra dom rep kaufen[/url]
    generic viagra

    viagra levitra cialis

  48. fes

    vender viagra

    [url=https://viatrustedonline.com/]get viagra online uk[/url]
    taking two 50mg viagra

    prix du viagra en asie

  49. fes

    how to buy viagra in budapest

    [url=https://viatrustedonline.com/]viagra cheap[/url]
    cheap viagra

    will viagra go generic

  50. fes

    generico viagra barato

    [url=https://viatrustedonline.com/]viagra generic[/url]
    viagra sale in canada

    viagra jelly generic name

  51. fes

    quanto costa il cialis 10 mg

    [url=https://cialtrustphal.com/]cialis tablets price australia[/url]
    i use it best cialis prices

    canadian health care cialis

  52. fes

    50mg generic cialis

    [url=https://cialtrustphal.com/]acheter cialis ligne france[/url]
    buy cialis online

    cialis generika zollfrei

  53. fes

    cialis e antipertensiv

    [url=https://cialtrustphal.com/]cialis eu pharmacy[/url]
    cialis

    cialis 20 mg erezione

  54. fes

    florida cialis soft

    [url=https://cialtrustphal.com/]cheap cialis us made[/url]
    cialis

    buy branded cialis uk

  55. fes

    cialis purchase prescription

    [url=https://cialtrustphal.com/]cost of cialis in mexico[/url]
    buy generic cialis

    cialis pro dosage

  56. fes

    buy cialis online nopw

    [url=https://cialtrustphal.com/]only here cialis 5mg prices[/url]
    buy cialis

    buy cialis 20 mg online cheap

  57. fes

    uk cialis buy to where cheap

    [url=https://cialtrustphal.com/]generic cialis online[/url]
    cialis 5mg effectiveness

    cialis halbieren

  58. fes

    cialis 25 mg buy online

    [url=https://cialtrustphal.com/]donde comprar cialis online[/url]
    generic cialis online

    cialis discount

  59. fes

    does cialis cause headaches

    [url=https://cialtrustphal.com/]i use it cialis free pills[/url]
    cialis sublingual refill pack

    prescription cialis cost

  60. fes

    how to take cialis 20mg

    [url=https://cialtrustphal.com/]vente de cialis 5 mgs[/url]
    cialis eu pharmacy

    real cialis 10mg canada

Leave a Reply

Your email address will not be published.

返回顶部

显示

忘记密码?

显示

显示

获取验证码

Close