# 运行环境* CentOS 7* Red Hat Enterprise Linux 7* tigervnc-server# 问题描述* 如何设置VNC远程访问CentOS操作系统图形界面# 解决方案## 安装X Windows System图形化界面* 安装图形化所需软件包```bash sudo yum groupinstall "Server with GUI"```* 更改运行级别, 系统启动后会以图形化方式启动```bash systemctl set-default graphical.target```* 立刻切换为图形化启动,请执行```bash syst...
[root@centos01 opt]# sysctl -pnet.bridge.bridge-nf-call-ip6tables = 1net.bridge.bridge-nf-call-iptables = 1net.ipv4.ip_forward = 1vm.swappiness = 0```## 安装containerd以下步骤所有节点都执行... ##### 启动服务```shellmkdir -p /usr/local/lib/systemd/systemwget https://raw.githubusercontent.com/containerd/containerd/main/containerd.servicemv containerd.service /usr/local/lib/systemd/syst...
# 运行环境* CentOS/RHEL 7# 问题描述如何迁移CentOS 7至更小的云盘# 解决方案1. 对当前实例创建镜像进行数据备份,[备份方法](https://www.volcengine.com/docs/6396/71393)2. 卸载掉当前实例其他数据盘,防止误操作导致数据盘数据丢失3. 分别挂载一个20G和25G的云盘至此实例4. 执行`fdisk /dev/vdx`创建分区```bash[root@i-7gr9y1grlnhir5dnwztk /]$ fdisk /dev/vdb 欢迎使用 fdisk (util-linux 2.23.2)。更改将...
# 运行环境- CentOS 7# 问题描述- 如何批量部署云监控插件到ECS实例# 解决方案1. 在同一VPC中启动CentOS 7操作系统实例,配置EPEL YUM源```# cat /etc/yum.repos.d/epel.repo [epel]name=EPELbaseurl=... /hosts node -b --become-user=root -m shell -a 'REGION_ID=BJ VERSION=v1.0.0 bash -c "$(curl http://tos-s3-cn-beijing.ivolces.com/cloud-monitor-agent/install.sh)"' --private-key=~/key.pem```6. 登录...
LAMP 环境是指在Linux系统中,搭建由Linux、Apache、MariaDB/MySQL、PHP组成的Web应用平台。本文介绍如何在CentOS 8.3实例上部署LAMP环境。 软件版本操作系统:本文以CentOS 8.3为例。 Apache:性能稳定的Web网页服务... Server version: Apache/2.4.37 (centos)Server built: Nov 16 2020 16:18:20 执行以下命令,启动Apache服务。systemctl start httpd 执行以下命令,设置Apache服务开机自启动。systemctl enable httpd 在本地浏...
[root@centos01 opt]# sysctl -pnet.bridge.bridge-nf-call-ip6tables = 1net.bridge.bridge-nf-call-iptables = 1net.ipv4.ip_forward = 1vm.swappiness = 0```## 安装containerd以下步骤所有节点都执行... ##### 启动服务```shellmkdir -p /usr/local/lib/systemd/systemwget https://raw.githubusercontent.com/containerd/containerd/main/containerd.servicemv containerd.service /usr/local/lib/systemd/syst...
软件版本操作系统:本文以CentOS 7.6为例,您也可以按需替换为CentOS 7.9、veLinux 1.0(CentOS兼容版)等CentOS 7系镜像。 WordPress:本文以WordPress 5.8.1为例。 前提条件您已购买Linux实例,并完成LAMP或LNMP环境的搭建。具体操作请参见搭建LAMP环境(CentOS 7)、搭建LNMP环境(CentOS 7)。 第一步:配置WordPress数据库远程连接云服务器并登录,具体操作请参考登录Linux实例小节。 执行以下命令,使用root用户进入MySQL/MariaDB数据...
# 运行环境* CentOS/RHEL 7# 问题描述如何迁移CentOS 7至更小的云盘# 解决方案1. 对当前实例创建镜像进行数据备份,[备份方法](https://www.volcengine.com/docs/6396/71393)2. 卸载掉当前实例其他数据盘,防止误操作导致数据盘数据丢失3. 分别挂载一个20G和25G的云盘至此实例4. 执行`fdisk /dev/vdx`创建分区```bash[root@i-7gr9y1grlnhir5dnwztk /]$ fdisk /dev/vdb 欢迎使用 fdisk (util-linux 2.23.2)。更改将...
# 运行环境- CentOS 7# 问题描述- 如何批量部署云监控插件到ECS实例# 解决方案1. 在同一VPC中启动CentOS 7操作系统实例,配置EPEL YUM源```# cat /etc/yum.repos.d/epel.repo [epel]name=EPELbaseurl=... /hosts node -b --become-user=root -m shell -a 'REGION_ID=BJ VERSION=v1.0.0 bash -c "$(curl http://tos-s3-cn-beijing.ivolces.com/cloud-monitor-agent/install.sh)"' --private-key=~/key.pem```6. 登录...
# 运行环境* CentOS 7# 问题描述* 如何批量部署云监控插件到ECS实例# 解决方案1. 在同一VPC中启动CentOS 7操作系统实例,配置EPEL YUM源```# cat /etc/yum.repos.d/epel.repo [epel]name=EPELbaseu... /hosts node -b --become-user=root -m shell -a 'REGION_ID=BJ VERSION=v1.0.0 bash -c "$(curl http://tos-s3-cn-beijing.ivolces.com/cloud-monitor-agent/install.sh)"' --private-key=~/key.pem```6. 登录...
> Android 诞生已久,其开发方式保持着高频更迭,相较于早期的开发方式已大不相同,尤其是近几年 Google 热切推崇的 MAD 开发技术。> > **其实很多开发者已经有意或无意地正在使用这门技术,借着 2023 开年探讨技术趋... 有的时候 Google 会将其翻译成`现代安卓开发`,有的时候又翻译成`新式安卓开发`,个人觉得前者的翻译虽然激进、倒也贴切。下面按照 MAD 的构成要点逐步展开,帮助大家快速了解 MAD 的技术理念。如果大家对其中的语言...
# 问题描述如何迁移 CentOS 6.5 镜像到火山引擎# 解决方案# 注意执行以下操作前,通过快照或其他方式保留原始系统文件#### 1. CentOS-Base.repo 和 epel.repo yum源配置```bash[root@localhost ~]# cat /etc/... 设置cloud-init开机启动```undefinedchkconfig --add cloud-init```#### 7. 更新GRUB菜单timeout显示时间为10秒```undefined[root@localhost ~]# cat /boot/grub/grub.conf default=0timeout=10 <---...
# 问题描述如何迁移 CentOS 6.5 镜像到火山引擎# 解决方案# 注意执行以下操作前,通过快照或其他方式保留原始系统文件#### 1\. CentOS-Base.repo 和 epel.repo yum源配置```bash[root@localhost ~]# cat... 设置cloud-init开机启动```undefinedchkconfig --add cloud-init```#### 7\. 更新GRUB菜单timeout显示时间为10秒```undefined[root@localhost ~]# cat /boot/grub/grub.conf default=0timeout=10 <...