vim /etc/hosts.allowsshd:192.168.31.109:allow //只允许192.168.31.109登录vim /etc/hosts.denysshd:ALL //开启白名单,只允许192.168.31.109登录systemctl restart sshd ,重启ss ...
分类:
其他好文 时间:
2020-06-23 13:43:28
阅读次数:
195
方法:修改setting.json文件,添加以下代码,保存后重新打开新终端 , "terminal.integrated.shellArgs.windows": ["/K chcp 65001 >nul"], "terminal.integrated.fontFamily": "Lucida Con ...
分类:
其他好文 时间:
2020-06-23 00:55:33
阅读次数:
136
客户端脚本: [root@nfs01 ~]# vim /server/scripts/backup.sh#/bin/bashBackup_dir="/backup"IP_info=$(hostname -i) #创建备份目录mkdir -p $Backup_dir/$IP_info #压缩备份数据 ...
分类:
其他好文 时间:
2020-06-22 18:36:12
阅读次数:
59
vim /etc/systemd/system/node_exporter.service [Unit] Description=node_exporter Documentation=https://prometheus.io/ After=network.target [Service] Typ ...
分类:
系统相关 时间:
2020-06-22 17:16:37
阅读次数:
107
配置一个简单的dns服务 先下载一个需要用到的软件 bind `yum -y install bind` 编辑配置文件 named.conf `vim /etc/named.conf 在配置文件里面修改两个部分,就是图中的 any 位置(之前不是any给修改成any的) `` options { # ...
分类:
其他好文 时间:
2020-06-22 15:06:28
阅读次数:
80
最近在项目中使用ArcObject的接口输出pdf时,尽管勾选了嵌入字体选项,某些文字依然显示为乱码。追踪原因,发现用户使用Fontlab软件向已有的truetype字体中补充了很多外文的字符,并且输出新字体后重新安装覆盖了原有字体。 经过好一番研究,使用FontCreator软件,发现新输出的字体 ...
分类:
其他好文 时间:
2020-06-22 10:44:09
阅读次数:
142
将/etc/profile文件拷贝到/tmp下,并用vim打开/tmp/profile在命令模式下删除行首的空白字符[root@centos7~]#cp/etc/profile/tmp/profile[root@centos7~]#cat/tmp/profile#/etc/profile#Systemwideenvironmentandstartupprograms,forloginsetup#F
分类:
系统相关 时间:
2020-06-22 09:18:53
阅读次数:
95
本来很简单的一个功能怎么导出都是乱码。 添加 error_reporting(E_ALL ^ E_NOTICE) ini_set("display_errors",'"on") PHP提示: Cannot modify header information - headers already sen ...
分类:
Web程序 时间:
2020-06-22 01:52:02
阅读次数:
92
在connection.url中做如下设置,databaseName是你自己的数据库名 <property name="connection.url">jdbc:mysql:///databaseName?useUnicode=true&characterEncoding=UTF-8</pr ...
分类:
Web程序 时间:
2020-06-22 01:33:23
阅读次数:
70
前言 使用其他方式如宝塔面板小伙伴可以自行百度,本博客只讲如何使用命令备份网站到github 一、 申请github仓库,最好设置私有 二、本地git配置 注:本文默认已经配置好git的默认配置,如ssh公钥 cd /www/wwwroot/网站目录 # 初始化仓库 git init # 关联到远程 ...
分类:
Web程序 时间:
2020-06-22 01:15:05
阅读次数:
90