云平台介绍
程序员文章站
2024-03-24 10:29:40
...
1.测试安装nginx
#安装
yum install nginx
#启动
systemctl start nginx
#访问 ip:80查看是否成功
#查看nginx安装位置
whereis nginx
#可以发现安装在 usr/share/nginx
修改html下的index.html
echo "6666" > index.html 发现页面改变。
#配置文件在 /etc/nginx
修改nginx.conf
vi nginx.conf
监听88端口
systemctl restart nginx
curl 127.0.0.1:88
2.安全组设置
入方向 出方向 端口范围88 授权对象0.0.0.0/0
需要把88端口打开才能在外网访问。
3.按量付费的优点
可以随时停止实例 不收费。
如果应用没有设置开机自动启动,需要手动启动。
#开机自启动
systemctl enable nginx
systemctl start nginx
4.私有网络VPC实战
公网IP供外部访问
私有IP内部使用 集群使用私有IP
自己划分网段 和阿里云给的内网ip不能ping通。
推荐阅读
-
Android--Animation动画介绍和实现
-
【对接抖店平台】对接抖音小店开发流程---接口调用组成部分介绍
-
云平台介绍
-
注释驱动的 Spring cache 缓存介绍 博客分类: SpringJava springcache
-
ExtJS Store 方法以及属性介绍 博客分类: Extjs ext
-
腾讯云 Linux下配置activemq小结
-
数据结构:数组详细介绍,你足够了解数组的特性和使用场景吗?
-
linux学习第五十二篇: exportfs命令,NFS客户端问题,FTP介绍,使用vsftpd搭建ftp服务
-
exportfs命令 ,NFS客户端问题 , FTP介绍 , 使用vsftpd搭建ftp
-
*数据库行会Percona阿里全面解析下一代云数据库技术 postgresqlmysql