摘要: 预备操作 # 主库IP:192.168.0.10数据库版本:Mariadb_10.9.4需要证书:/data/ca/ca-cert.pem/data/ca/server-cert.pem/data/ca/server-key.pem # 从库IP:192.168.0.20数据库版本:Mariadb_ 阅读全文
posted @ 2022-12-30 12:06 vicowong 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 一、确认firewalld安装 systemctl start firewalld && systemctl enable firewalldsystemctl status firewalld 查看firewalldfirewall-cmd --list-all 二、安装 fail2bandnf 阅读全文
posted @ 2022-12-22 12:30 vicowong 阅读(400) 评论(0) 推荐(0) 编辑
摘要: #*** /etc/my.cnf 配置文件 ***# [client]port = 3309socket = /usr/local/mysql/tmp/mysql.sock[mysqld]!include /usr/local/mysql/etc/mysqld.cnf # 包含的配置文件 ,把用户名 阅读全文
posted @ 2022-12-14 10:40 vicowong 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 一、查看硬件信息 1、查看物理cpu个数、核心数量、线程数grep 'physical id' /proc/cpuinfo | sort -u | wc -lgrep 'core id' /proc/cpuinfo | sort -u | wc -lgrep 'processor' /proc/cp 阅读全文
posted @ 2022-12-11 19:17 vicowong 阅读(630) 评论(0) 推荐(0) 编辑
摘要: Fatal glibc error:CPU does not support x86-64-v2 设置:至少需要用2核心才能启动安装。建议启用vbox的嵌套虚拟化 打开PowerShellPS C:\Program Files\Oracle\VirtualBox> .\vboxmanage modi 阅读全文
posted @ 2022-12-10 16:26 vicowong 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 查看硬件信息 主机 dmidecode|grep "Product Name" CPU cat /proc/cpuinfo |grep name 内存 cat /proc/meminfo 网卡 dmesg|grep -i eth 系统版本 cat /etc/redhat-release 查看物理cp 阅读全文
posted @ 2017-07-25 16:22 vicowong 阅读(2909) 评论(0) 推荐(0) 编辑
摘要: 环境: 系统硬件:vmware vsphere (CPU:2*4核,内存2G,双网卡) 系统版本:CentOS-7.0-1406-x86_64-DVD.iso 安装步骤: 1.准备 1.1 显示系统版本[root@centos ~]# cat /etc/redhat-release CentOS L 阅读全文
posted @ 2017-02-15 16:22 vicowong 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 添加新硬盘 [root@centos ~]# fdisk -l 硬盘分区(硬盘只分一下区,按默认) [root@centos ~]# fdisk /dev/vdb n p 1 l 默认 w [root@centos ~]# ls –l /dev 格式化分区 [root@centos ~]# mkfs 阅读全文
posted @ 2017-01-05 14:50 vicowong 阅读(5417) 评论(0) 推荐(0) 编辑
摘要: 查看定时任务格式 [root@centos ~]# vim /etc/crontab 1 SHELL=/bin/bash 2 PATH=/sbin:/bin:/usr/sbin:/usr/bin 3 MAILTO=root 4 5 # For details see man 4 crontabs 6 阅读全文
posted @ 2016-12-29 14:08 vicowong 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 环境: 系统硬件:vmware vsphere (CPU:2*4核,内存2G,双网卡) 系统版本:CentOS-7-x86_64-Minimal-1611.iso 数据库版本信息 : 10.1.20-MariaDB Source distribution 主服务器的IP:192.168.1.14 从 阅读全文
posted @ 2016-12-23 09:48 vicowong 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 基础部分设置 [root@centos ~]# vim /opt/nginx/conf/nginx.conf user www www;worker_processes auto;pid logs/nginx.pid;worker_rlimit_nofile 100000; events {use 阅读全文
posted @ 2016-12-09 15:06 vicowong 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 环境: 系统硬件:vmware vsphere (CPU:2*4核,内存2G,双网卡) 系统版本:CentOS-7-x86_64-Minimal-1611.iso 安装步骤: 1.准备 1.0 查看硬件信息 查看物理cpu个数[root@centos ~]# grep 'physical id' / 阅读全文
posted @ 2016-01-07 14:47 vicowong 阅读(1960) 评论(0) 推荐(0) 编辑
摘要: 环境:系统硬件:vmware vsphere (CPU:2*4核,内存2G,双网卡)LVS服务器(两台):系统:Centos7.0 64位(LVS+keepalived)LvsMaster:192.168.1.21 (主VIP:192.168.1.20 ,备VIP:192.168.1.18)LvsB... 阅读全文
posted @ 2015-03-17 11:40 vicowong 阅读(2923) 评论(0) 推荐(0) 编辑
摘要: 环境:系统硬件:vmware vsphere (CPU:2*4核,内存2G,双网卡)系统版本:CentOS-7.0-1406-x86_64-DVD.iso安装步骤:1.准备1.1 显示系统版本[root@centos ~]# cat /etc/redhat-releaseCentOS Linux r... 阅读全文
posted @ 2014-12-18 11:27 vicowong 阅读(2609) 评论(0) 推荐(0) 编辑
摘要: 环境: 系统硬件:vmware vsphere (CPU:2*4核,内存2G,双网卡) 系统版本:CentOS-7.0-1406-x86_64-DVD.iso 安装步骤: 1.准备 1.1 显示系统版本[root@centos ~]# cat /etc/redhat-release CentOS L 阅读全文
posted @ 2014-12-11 10:00 vicowong 阅读(824) 评论(0) 推荐(0) 编辑
摘要: 环境: 系统硬件:vmware vsphere (CPU:2*4核,内存2G,双网卡) 系统版本:CentOS-7-x86_64-Minimal-1611.iso GIT服务器IP:192.168.1.10 SSH端口:默认为22 开发端1: GIT管理者,管理GIT服务器的成员和项目设置,同时也是 阅读全文
posted @ 2014-12-04 12:41 vicowong 阅读(4322) 评论(0) 推荐(0) 编辑
摘要: 环境: 系统硬件:vmware vsphere (CPU:2*4核,内存2G,双网卡) 系统版本:CentOS-7.0-1406-x86_64-DVD.iso 安装步骤: 1.虚拟系统安装 1.1 使用VMware 虚拟机,读入ISO进行安装。启动后进行安装界面 1.2 选择 Install Cen 阅读全文
posted @ 2014-07-11 14:58 vicowong 阅读(5832) 评论(0) 推荐(0) 编辑
摘要: 通过修改CentOS 6.5 的系统默认设置,对系统进行安全加固,进行系统的性能优化。环境: 系统硬件:vmware vsphere (CPU:2*4核,内存2G) 系统版本:Centos-6.5-x86_64(最小化安装)步骤: 1.关闭SELinux [root@centos ~... 阅读全文
posted @ 2014-04-11 16:42 vicowong 阅读(1502) 评论(0) 推荐(0) 编辑
摘要: 一.生成对称密钥(在客户机生成) ssh-keygen -t rsa ls /root/.ssh 二.配置系统使用密钥登录 1.把公钥复制到服务器 id_rsa.pub cd /root/.ssh ls 2.在服务器上,把证书信息导入到authorized_keys cd /root/.ssh ca 阅读全文
posted @ 2013-04-03 11:09 vicowong 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 环境: 系统硬件:vmware vsphere (CPU:2*4核,内存2G) 系统版本:CentOS-6.5-x86_64-minimal.iso 安装步骤: 0.虚拟系统安装 0.1 使用VMware 虚拟机进行安装,进行安装界面 (分配内存必须大于1G,否则不会显示图型安装界面,网络设置使用“ 阅读全文
posted @ 2011-12-01 23:38 vicowong 阅读(9185) 评论(2) 推荐(1) 编辑
摘要: https://github.com/usememos/memos docker run -d --name memos -p 5230:5230 -v ~/.memos/:/var/opt/memos neosmemo/memos:stable The ~/.memos/ directory wi 阅读全文
posted @ 2024-03-26 11:10 vicowong 阅读(54) 评论(0) 推荐(0) 编辑
摘要: docker 官方网址:https://www.docker.com/ docker 其它网址:https://docker.p2hp.com/ Rocky9 环境dnf install docker Ubuntu20.04 环境 curl -fsSL https://get.docker.com 阅读全文
posted @ 2024-03-26 11:10 vicowong 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 查看域名解析cname值的方法 win+R进入到命令提示符窗口后,在命令行中执行nslookup命令即可查看域名解析的值; 1)查询域名解析的cname值 nslookup -qt=CNAME www.baidu.com2)查询域名解析的A记录值 nslookup -qt=A baidu.com3) 阅读全文
posted @ 2023-04-24 15:30 vicowong 阅读(691) 评论(0) 推荐(0) 编辑
摘要: 一、安装sudo apt-get install -y fail2ban 二、配置Fail2Ban 配置文件格式 INI,存于 /etc/fail2ban 目录: fail2ban.conf : fail2ban 程序运行的日志和数据库等参数。jail.conf : 禁止(ban)相关参数。filt 阅读全文
posted @ 2021-07-07 08:54 vicowong 阅读(367) 评论(0) 推荐(0) 编辑
摘要: VSCode搭建Vue项目 vscode vue 格式化 1.在 vscode 的extension中搜索 “vetur”插件,并安装,安装成功后重启编辑器。 2.设置,查找 vetur.editor.defaultFormatterEditor:Default Formatter 选择 Vetur 阅读全文
posted @ 2021-06-18 09:37 vicowong 阅读(510) 评论(0) 推荐(0) 编辑