草庐IT

Terraform系列二腾讯云CVM进一步相关玩法

背景:紧接[Terraform系列一腾讯云CVM相关简单创建]。准备围绕着cvm先熟悉一下基本的流程。比如:系统盘扩容,挂载数据盘,帐号密钥ssh-key,绑定公网ip.研究一下官方文档体验一下!Terraform系列二腾讯云CVM进一步相关玩法1.关于硬盘的操作参照:https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/latest/docs/resources/instance默认的系统盘是50G,设置system_disk_size=100。修改系统盘为100G,并增加了数据盘data_disks配置

一步一步教你apache深入优化

Aache深入优化一、在Centos01上安装apache服务,在Centos02配置DNS服务器使用域名www.stz.com1、在Centos01上安装apache服务配置网站1)切换光盘2)挂载光盘解压源代码程序[root@centos01~]#mount/dev/cdrom/mnt/mount:/dev/sr0写保护,将以只读方式挂载[root@centos01~]#tarzxf/mnt/httpd-2.2.17.tar.gz-C/usr/src/[root@centos01~]#ls/usr/src/debughttpd-2.2.17kernels3)配置安装apache[root@

一步一步教你apache深入优化

Aache深入优化一、在Centos01上安装apache服务,在Centos02配置DNS服务器使用域名www.stz.com1、在Centos01上安装apache服务配置网站1)切换光盘2)挂载光盘解压源代码程序[root@centos01~]#mount/dev/cdrom/mnt/mount:/dev/sr0写保护,将以只读方式挂载[root@centos01~]#tarzxf/mnt/httpd-2.2.17.tar.gz-C/usr/src/[root@centos01~]#ls/usr/src/debughttpd-2.2.17kernels3)配置安装apache[root@

一步一步教你Nginx平滑升级和动静分离

一、在Centos01安装Nginx服务,配置网站主页,使用www.szt.com访问Nginx1、在Centos01上安装Nginx依赖1)挂载光盘配置本地yum仓库[root@centos01~]#mount/dev/cdrom/mnt/mount:/dev/sr0写保护,将以只读方式挂载[root@centos01~]#rm-rf/etc/yum.repos.d/CentOS-*2)安装依赖[root@centos01~]#yum-yinstallpcre-develzlib-devel3)创建管理Nginx用户[root@centos01~]#useradd-M-s/sbin/nolo

一步一步教你Nginx平滑升级和动静分离

一、在Centos01安装Nginx服务,配置网站主页,使用www.szt.com访问Nginx1、在Centos01上安装Nginx依赖1)挂载光盘配置本地yum仓库[root@centos01~]#mount/dev/cdrom/mnt/mount:/dev/sr0写保护,将以只读方式挂载[root@centos01~]#rm-rf/etc/yum.repos.d/CentOS-*2)安装依赖[root@centos01~]#yum-yinstallpcre-develzlib-devel3)创建管理Nginx用户[root@centos01~]#useradd-M-s/sbin/nolo

一步一步教你Nginx优化和防盗链

     Nginx优化和防盗链一、在Centos01上安装Nginx,设置根目录/www/使用域名www.stz.con访问1、在Centos01上安装Nginx依赖程序1)挂载系统光盘配置本地yum仓库[root@centos01~]#mount/dev/cdrom/mnt/mount:/dev/sr0写保护,将以只读方式挂载[root@centos01~]#rm-rf/etc/yum.repos.d/CentOS-*[root@centos01~]#ls/etc/yum.repos.d/local.repo2)安装依赖程序[root@centos01~]#yum-yinstallpcre