随笔分类 -  CentOS

CentOS
摘要:一、脚本 #!/bin/bash #开始清理缓存 echo "开始清除缓存" #写入硬盘,防止数据丢失 sync;sync;sync #延迟10秒 sleep 10 #清理缓存 echo 1 > /proc/sys/vm/drop_caches echo 2 > /proc/sys/vm/drop_ 阅读全文
posted @ 2022-10-15 21:42 b̶i̶n̶g̶.̶ 阅读(94) 评论(0) 推荐(0) 编辑
摘要:1、创建脚本mongo_bak.sh #!/bin/bash DUMP=/usr/bin/mongodump #mongodump备份文件执行路径 OUT_DIR=/var/www/db_bak/mongo #备份目录 DATE=`date +%Y_%m_%d` #获取当前系统时间 DB_USER= 阅读全文
posted @ 2022-06-21 21:00 b̶i̶n̶g̶.̶ 阅读(218) 评论(0) 推荐(0) 编辑
摘要:一、修改ssh配置文件sshd_config vi /etc/ssh/sshd_config #修改port Port=22345 二、防火墙放行 firewall-cmd --zone=public --add-port=22345/tcp --permanent firewall-cmd --r 阅读全文
posted @ 2022-06-21 19:25 b̶i̶n̶g̶.̶ 阅读(808) 评论(0) 推荐(0) 编辑
摘要:一、官网下载地址 https://downloads.mysql.com/archives/community/ 二、安装8.0.31 1、下载特定版本rpm cd /tmp wget https://cdn.mysql.com/archives/mysql-8.0/mysql-community- 阅读全文
posted @ 2022-06-17 15:28 b̶i̶n̶g̶.̶ 阅读(450) 评论(0) 推荐(0) 编辑
摘要:一、密码复杂度配置 1、备份原有配置文件 cp /etc/pam.d/system-auth /etc/pam.d/system-auth.bak 2、设置复杂度策略 vim /etc/pam.d/system-auth 找到包含pam_pwquality.so模块的行,将原有行注释并修改为如下的新 阅读全文
posted @ 2022-01-12 16:58 b̶i̶n̶g̶.̶ 阅读(2183) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/yogurtwu/p/10717001.html 阅读全文
posted @ 2021-10-14 11:42 b̶i̶n̶g̶.̶ 阅读(57) 评论(0) 推荐(0) 编辑
摘要:执行三条命令 sync && echo 1 > /proc/sys/vm/drop_caches sync && echo 2 > /proc/sys/vm/drop_caches sync && echo 3 > /proc/sys/vm/drop_caches free -h 阅读全文
posted @ 2021-09-23 08:28 b̶i̶n̶g̶.̶ 阅读(51) 评论(0) 推荐(0) 编辑
摘要:在选择第一项时,按Tab键,UEFI的是按E键,将 Mlinuz initrd=initrd.img inst.stage2=hd:LABEL=CentOS\* rd.live.check quiet 更换为 vmlinuz initrd=initrd.img inst.stage2=hd:/dev 阅读全文
posted @ 2021-07-27 12:17 b̶i̶n̶g̶.̶ 阅读(120) 评论(0) 推荐(0) 编辑
摘要:1.修改MySQL配置 /etc/my.cnf vim /etc/my.cnf [mysqldump] user=xxx password=xxx 2.创建脚本 touch /var/www/wwwroot/dbbaks/项目名称_bak.shvim /var/www/wwwroot/dbbaks/ 阅读全文
posted @ 2021-04-24 15:30 b̶i̶n̶g̶.̶ 阅读(231) 评论(0) 推荐(0) 编辑
摘要:1.首先在/usr/shared/fonts目录下新建一个目录chinese cd /usr/share/fonts mkdir chinese 2.拷贝windows字体到chinese目录 3.安装字体 cd /usr/share/fonts/chinese sudo dnf install f 阅读全文
posted @ 2021-04-22 13:58 b̶i̶n̶g̶.̶ 阅读(791) 评论(0) 推荐(0) 编辑
摘要:一、安装依赖 dnf -y install automake autoconf libtool make gcc gcc-c++ dnf --enablerepo=PowerTools -y install giflib-devel dnf --enablerepo=PowerTools -y in 阅读全文
posted @ 2021-04-22 11:13 b̶i̶n̶g̶.̶ 阅读(477) 评论(0) 推荐(0) 编辑
摘要:一、安装依赖1.1 安装tiff、png、gif等依赖 dnf -y install automake autoconf libtool make gcc gcc-c++ dnf --enablerepo=PowerTools -y install giflib-devel dnf --enable 阅读全文
posted @ 2021-03-08 19:36 b̶i̶n̶g̶.̶ 阅读(303) 评论(0) 推荐(0) 编辑
摘要:原文:https://blog.csdn.net/wudinaniya/article/details/81068518 阅读全文
posted @ 2021-01-29 10:23 b̶i̶n̶g̶.̶ 阅读(74) 评论(0) 推荐(0) 编辑
摘要:使用了chrony模块 dnf install chrony vim /etc/chrony.conf # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www 阅读全文
posted @ 2020-09-02 14:14 b̶i̶n̶g̶.̶ 阅读(239) 评论(0) 推荐(0) 编辑
摘要:参考:http://blog.csdn.net/chenxiabinffff/article/details/51374635 阅读全文
posted @ 2017-07-07 13:42 b̶i̶n̶g̶.̶ 阅读(528) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/jackieron/p/9626872.html 阅读全文
posted @ 2015-11-12 17:19 b̶i̶n̶g̶.̶ 阅读(281) 评论(0) 推荐(0) 编辑
摘要:一、阅读前须知: 1.本文属于安装完Centos7之后的步骤 2.如果还不了解mono,请点击mono 3.本篇主要内容是使用自定义目录安装mono+jexus教程,使用默认目录请查看使用默认目录安装 二、安装步骤 1.准备环境 yum -y install gcc gcc-c++ bison pk 阅读全文
posted @ 2015-11-11 09:28 b̶i̶n̶g̶.̶ 阅读(2437) 评论(1) 推荐(6) 编辑
摘要:一、阅读须知 1.TinyFox是什么 Tinyfox3.x 将支持多站点多域名 2.Jexus是什么 二、使用问题解答 * 问题1.发布Owin项目到Win/Centos系统下的TinyFox上时,无法读取"App.config"? 解决:将App.config放入TinyFox.exe同目录下, 阅读全文
posted @ 2015-11-10 16:19 b̶i̶n̶g̶.̶ 阅读(487) 评论(1) 推荐(2) 编辑
摘要:一、阅读前须知: 1.本文属于安装完Centos7之后的步骤 2.如果还不了解mono,请点击mono 3.本篇主要内容是使用默认目录安装mono+jexus教程,使用自定义目录请查看使用自定义目录安装 二、安装步骤 1.准备环境 yum -y install gcc gcc-c++ bison p 阅读全文
posted @ 2015-11-10 15:37 b̶i̶n̶g̶.̶ 阅读(1587) 评论(2) 推荐(4) 编辑
摘要:总结下在mono环境中使用Wcf出现的问题以帮助你快速解决问题。1.昨天在内网Centos7下部署由Windows上开发完成的ASP.NET Mvc4项目,部署到mono环境下遇到了无法找到endpoint address,然后楼主查阅资料最后写了一个代理类解决,总结的问题:mono下无法识别web... 阅读全文
posted @ 2015-11-10 14:46 b̶i̶n̶g̶.̶ 阅读(616) 评论(4) 推荐(1) 编辑