background picture of the home page

星尘の博客

Vue之v-指令

Vue之v-指令 1. v-text = ‘message’ 描述 主要作用是设置标签内的文本为message 一般来说会用message取代标签内的所有内容 可以用{{message}}插值表达式代替v-text 注:message可以是文本,变量,表达式 代码演示 <div id='app'>

thumbnail of the cover of the post

CentOS 7 安装yum

配置 CentOS 7 的 Yum 源 一、网络 Yum 源配置 1. 替换为阿里云 Yum 源 步骤一:备份本地 Yum 源文件 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak 步骤二:获取阿里

thumbnail of the cover of the post

CentOS 7.6 安装 Redis

CentOS7.6 安装 Redis 一、到官网下载安装包 下载redis https://wwl.lanzout.com/b00l0xvwod 密码:68w0 或者去官网下载 https://redis.io/downloads 二、安装gcc 使用gcc --version命令查看是否安装了gc

thumbnail of the cover of the post

CentOS 创建并运行tomcat

CentOS 安装并运行 Tomcat 的完整指南 在 CentOS 系统中安装和运行 Apache Tomcat 是部署 Java Web 应用的常见需求。本文将详细介绍如何在 CentOS 上安装 Tomcat、运行 Tomcat 服务,并配置多个 Tomcat 实例以实现负载均衡。 1. 安装

thumbnail of the cover of the post

CentOS 创建普通用户并禁止root用户远程登陆

CentOS 创建普通用户并禁止 Root 用户远程登录的最佳实践 在服务器管理中,直接使用 root 用户进行远程登录存在较大的安全风险。为了避免潜在的安全威胁,我们可以通过创建普通用户并禁止 root 用户远程登录来增强服务器的安全性。本文将详细介绍如何在 CentOS 系统中实现这一目标。 1

thumbnail of the cover of the post

CentOS iptables防火墙

CentOS 7 下 iptables 防火墙配置指南 1. 安装与初始化 1.1 安装 iptables 服务 yum install -y iptables-services 1.2 停止并禁用 firewalld # 停止firewalld服务 systemctl stop firewall

thumbnail of the cover of the post

Linux之Vi和Vim命令

vi和vim的常用命令 当提到Linux的vi和vim编辑器时,以下是一些常用的命令: 1. 打开文件和保存: 打开文件:vi <文件名> 或 vim <文件名> 保存文件:按下 Esc键,然后输入 :w,再按回车键 2. 退出编辑器: 保存并退出:按下 Esc键,然后输入 :wq,再按回车键 不保

thumbnail of the cover of the post

MySQL 存储过程

MySQL 存储过程详解与实践指南 1. 存储过程基础 1.1 创建简单存储过程 # 基础存储过程示例 DROP PROCEDURE IF EXISTS test; # 如果存在同名存储过程则删除 DELIMITER // # 定义新的语句结束符 CR

thumbnail of the cover of the post

MySQL 连接问题

记一次MySQL连接问题及解决方案 问题描述 客户在使用数据库连接工具时,无法正常连接MySQL数据库,并收到以下错误提示: 1129 - Host 'xxx.xxx.xxx.xxx' is blocked because of many connection errors; unblock wit

thumbnail of the cover of the post

MySQL 日期格式化

MySQL 日期格式化 在处理日期和时间时,MySQL 提供了多种函数来格式化和转换日期时间数据。以下是一些常用的函数及其用法: 1. 将时间格式化为 YYYY-mm-dd HH:ii:ss 格式 SELECT DATE_FORMAT(NOW(), '%Y-%m-%d %H:%i:%s'); 解释

thumbnail of the cover of the post