使用亚马逊云服务器搭建个人网站教程

网站搭建2个月前更新 秋水
463 0 0

亚马逊云的优势

亚马逊云服务器具有强大的可扩展性、高度可靠和安全、灵活的付费模式以及丰富的服务和功能。并且新用户可以享受以下免费额度:

云服务器EC2 – 12个月免费、虚拟服务器VPS Lightsail – 3个月免费 等等

提前准备

1.一个双币信用卡

2.个人邮箱,访问亚马逊云服务器网站

注册及使用

亚马逊云服务器注册链接https://aws.amazon.com/cn/free/?trk=d1d9d237-d0a7-4d9c-be06-75a1634c2284&sc_channel=sm&campaign=video2460

详见视频教程:亚马逊云服务器注册注册使用教程

相关软件

ssh连接工具:finalshell(点击跳转下载界面)

相关代码

切换root登陆代码:

1、切换到root用户:sudo -i 

2、修改SSH配置文件:vi /etc/ssh/sshd_config 

3、将#PermitRootLogin prohibit-password
   改为 PermitRootLogin yes

4、进入/etc/ssh/sshd_config.d目录,目录下会有一个*-settings.conf的文件,
  将里面的内容改为PasswordAuthentication yes

5、设置root账户密码:passwd root 

6、重启SSH服务:/etc/init.d/ssh restart 【Debian & Ubuntu】 或 systemctl restart ssh 
              /bin/systemctl restart sshd.service【CentOS】

安装宝塔相关代码:

Centos安装脚本:

yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec

Ubuntu/Deepin安装脚本:

 wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec

Debian安装脚本:

wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && bash install.sh ed8484bec

万能安装脚本:

if [ -f /usr/bin/curl ];then curl -sSO https://download.bt.cn/install/install_panel.sh;else wget -O install_panel.sh https://download.bt.cn/install/install_panel.sh;fi;bash install_panel.sh ed8484bec

注意事项

lightsail 注意事项:
1、免费使用三个月
2、每个月免费750小时
3、IP无限免费更换

EC2注意事项
1、免费使用12个月
2、每个月免费750小时
3、Linux Windows分别计算使用量
4、IP无限免费更换

 

 

© 版权声明

相关文章

没有相关内容!

暂无评论

您必须登录才能参与评论!
立即登录
暂无评论...