技术交流QQ群:①185473046   ②190706903   ③203744115   网站地图
登录

下次自动登录
现在的位置: 首页
0℃

Linux系统下安装中文字体

2022年09月01日 Linux  ⁄ 被围观 3,537次+
默认情况下,Linux系统一般没有安装中文字体,如果有需求可以自己安装,下面以CentOS 7.x为例来进行安装。 1、使用yum源在线安装默认字体库 yum install fontconfig 2、安装字体库管理工具 #安装ttmkfdir这个是用来搜索目录中所有的字体信息并汇总生成fonts.scale文件 yum install ttmkfdir #创建中文字体存放目录 mkdir /usr/share/fonts/chinese 3、拷贝字体,可以从windows系统进行拷贝,打开c盘下的C:\Windows\Fonts目录,一般选择宋体和黑体,simsun.ttc、msyhbd.ttc、msyhl.ttc、msyh.ttc将中文字体复制到/...
阅读全文
0℃

Linux下使用File Browser搭建轻量级文件服务器

2022年08月26日 Linux  ⁄ 被围观 4,054次+
File Browser是一个使用go语言编写的软件,功能是可以通过浏览器对服务器上的文件进行管理。可以是修改文件,或者是添加删除文件,甚至可以分享文件,是一个很棒的文件管理器,你甚至可以当成一个网盘来使用。总之使用非常简单方便,功能很强大。 项目地址:https://github.com/filebrowser/filebrowser/releases/ 教程地址:https://www.filebrowser.cn/ 下载地址:https://github.com/filebrowser/filebrowser/releases/download/v2.22.4/linux-amd64-filebrowser.tar.gz 上传安装包到/usr/local/src目录 开启...
阅读全文
0℃

Linux下安装Go-FastDfs分布式文件系统

2022年08月23日 Linux  ⁄ 被围观 3,711次+
go-fastdfs 是一个基于 http 协议的分布式文件系统,它基于大道至简的设计理念,一切从简设计,使得它的运维及扩展变得更加简单,它具有高性能、高可靠、无中心、免维护等优点。 官方网站:https://sjqzhang.gitee.io/go-fastdfs/ go-fastdfs (go语言版本的FastDFS) 项目地址:https://github.com/sjqzhang/go-fastdfs 编译版本下载地址:https://github.com/sjqzhang/go-fastdfs/releases go-fastdfs-web 监控工具 项目地址:https://github.com/perfree/go-fastdfs-web 各打包版本下载地址:https://github.com...
阅读全文
0℃

Linux系统下安装Java JDK

2022年08月14日 Linux  ⁄ 被围观 2,728次+
说明: 1、JDK 是 Java 语言的软件开发工具包,JDK 是整个 Java 开发的核心,它包括 Java 运行环境、Java 基础类库和 Java 工具。 2、目前JDK有三个长期支持版本(LTS),分别是:JDK8、JDK11 和 JDK17。 3、JDK 版本包括 Oracle JDK、OpenJDK、AdoptOpenJDK、Amazon Corretto、阿里 Dragonwell 以及华为毕昇 JDK等,其中Oracle JDK 使用最广泛,版本最全面。 4、OpenJDK 是由 Sun 公司创建的 JDK SE 的开源实现,它采用 GPL 协议,可以免费使用,源码开放。 5、AdoptOpenJDK(adoptium) 是由 Java 社区维护的预建...
阅读全文
0℃

CentOS 7.x 安装配置redis-7.0.4集群

2022年08月04日 Redis  ⁄ 被围观 3,724次+
准备篇 一、防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-c...
阅读全文
0℃

Redis日志按天切割并删除指定天数前的日志

2022年08月04日 Redis  ⁄ 被围观 3,263次+
Redis安装目录:/usr/local/redis-5.0.14/ #创建日志切割脚本 vi /usr/local/redis-5.0.14/cut-redis-log.sh #!/bin/bash #获取昨天的日期 file_date=$(date -d"1 day ago" +"%Y%m%d") #redis日志文件 log_path_redis=/usr/local/redis-5.0.14/log/redis.log #日志切割后的存放目录 back_base=/usr/local/redis-5.0.14/log/ #设置删除多少天之前的日志文件 days=180 #切割日志 #redis的日志文件可以直接mv,不需要重新加载服务就能生成新的日志文件 mv $log_path_redis $back_base/redis_$file_date.log #删除日...
阅读全文
0℃

Linux下Nginx版本平滑升级与回滚

2022年08月03日 Nginx  ⁄ 被围观 3,648次+
操作系统:CentOS 7.x 准备篇 一、防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this man...
阅读全文
0℃

CentOS 7.x 安装redis-6.0.16

2022年07月26日 Redis  ⁄ 被围观 2,859次+
准备篇 一、防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-c...
阅读全文
0℃

CentOS 7.x 安装redis-5.0.14

2022年07月25日 Redis  ⁄ 被围观 3,223次+
准备篇 一、防火墙配置 CentOS 7.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件 # sample configuration for iptables service # you can edit this manually or use system-c...
阅读全文
0℃

CentOS系统下安装SNMP服务

2022年07月20日 CentOS  ⁄ 被围观 6,328次+
操作系统:CentOS 7.x 8.x 一、防火墙配置 CentOS 7.x 8.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件,开放ftp服务端口 # sample configuration for iptables service # you...
阅读全文
0℃

CentOS 7.x升级OpenSSL版本

2022年07月10日 CentOS  ⁄ 被围观 9,731次+
操作系统:CentOS 7.x 为什么要升级OpenSSL版本? CentOS 7.x 默认安装的OpenSSL是1.0.2k(CentOS 7.9) [root@mysql-master ~]# openssl version OpenSSL 1.0.2k-fips 26 Jan 2017 whereis openssl #查找opensll [root@mysql-master ~]# whereis openssl openssl: /usr/bin/openssl /usr/lib64/openssl /usr/share/man/man1/openssl.1ssl.gz 在编译安装php7.4及其以上版本的时候,需要高版本的OpenSSL;还有一些php开源框架例如ThinkPHP等程序需要高版本的OpenSSL;MySQL 8.x版本安装部署也需要高版本的OpenSSL...
阅读全文
0℃

CentOS 7.x下MySQL数据库主从同步配置

2022年06月30日 主从架构  ⁄ 被围观 2,683次+
说明: 操作系统:CentOS 7.x 64位 MySQL数据库版本:mysql-5.7.38-linux-glibc2.12-x86_64.tar.gz MySQL主服务器:192.168.21.128 MySQL从服务器:192.168.21.129 准备篇: 说明:在两台MySQL服务器192.168.21.128和192.168.21.129上分别进行如下操作 一、防火墙配置 CentOS 7.x 默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl s...
阅读全文
0℃

CentOS 7.x根分区磁盘扩容

2022年06月30日 CentOS  ⁄ 被围观 3,307次+
1、适合只有一个根分区/,非LVM分区的磁盘(云服务器/虚拟机) 首先增加磁盘容量 #查看磁盘信息 df -TH fdisk -l lsblk 可以看到磁盘容量已经变了 文件系统还是原来的 先删除分区,最后再创建根分区 fdisk /dev/sda p #查看分区信息 d #删除 n #创建分区 p 1 回车 回车全部分配 w #写入 partprobe #刷新分区 xfs_growfs /dev/sda1 #ext4文件系统扩容使用 resize2fs 扩容 df -TH #查看分区信息,磁盘已经扩容 2、把其他分区/data的容量扩容到根分区/,非LVM分区的磁盘(物理机/云服务器/虚拟机) fdisk /dev/sd...
阅读全文
0℃

Linux下PostgreSQL数据库基本操作

2022年06月28日 PostgreSQL  ⁄ 被围观 7,535次+
说明: 1、PostgreSQL 使用 pg_dump 和 pg_dumpall 进行数据库的逻辑备份,使用 psql 和 pg_restore 导入数据; 2、pg_dump 可以选择一个数据库或者部分表进行备份,pg_dumpall是对整个数据库集群进行备份; 3、psql恢复SQL文本格式的数据备份,pg_restore恢复自定义格式的数据备份。 数据库用户:dbuser 数据库:testdb 数据表:new_test,tb_test,testdb 数据库安装路径:/usr/local/pgsql/bin/ mkdir -p /data/backup #创建备份文件存放目录 chown postgres.postgres -R /data/backup su - postgres 一、Post...
阅读全文
0℃

Linux下PostgreSQL数据库主从同步配置

2022年06月26日 PostgreSQL  ⁄ 被围观 3,847次+
操作系统:CentOS-7.6 主节点:192.168.21.100 从节点:192.168.21.101 PostgreSQL版本:postgresql-11.13.tar.gz 下载地址:https://ftp.postgresql.org/pub/source/v11.13/postgresql-11.13.tar.gz PostgreSQL数据库的主从同步是一种高可用解决方案,可以实现读写分离。 一、基础配置 在主从服务器上都进行操作 1、防火墙配置 CentOS 7.x 8.x 默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1.1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.serv...
阅读全文
0℃

Proxmox Virtual Environment安装配置图解教程

2022年06月21日 Proxmox  ⁄ 被围观 9,901次+
Proxmox全称Proxmox Virtual Environment,简称PVE,是基于Debian的开源虚拟机平台,比ESXi轻量、功能丰富、对硬件要求低,几乎可以在所有x86硬件上运行。 Proxmox官方网站:https://www.proxmox.com/ 下载地址:https://www.proxmox.com/en/downloads/category/iso-images-pve 目前最新版本是:Proxmox VE 7.2 下载系统镜像,使用rufus制作U盘系统盘,注意镜像写入方式选择以DD镜像模式写入。 一、安装Proxmox 使用系统镜像引导系统,进入下面的界面。 Install Proxmox VE  #安装 如果是Vm虚拟机安装需要打开...
阅读全文
0℃

CentOS使用系统镜像搭建局域网Yum源

2022年06月16日 CentOS  ⁄ 被围观 3,987次+
一、防火墙配置 CentOS 7.x 8.x默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 systemctl mask firewalld systemctl stop firewalld yum remove firewalld 2、安装iptables防火墙 yum install iptables-services #安装 vi /etc/sysconfig/iptables #编辑防火墙配置文件,开放ftp服务端口 # sample configuration for iptables service # you can edit this manually o...
阅读全文


Copyright© 2011-2024 系统运维 All rights reserved
版权声明:本站所有文章均为作者原创内容,如需转载,请注明出处及原文链接
陕ICP备11001040号-3