cash
- 浏览: 172006 次
- 性别:
- 来自: 沈阳
社区版块
- ( 0)
- ( 0)
- ( 0)
文章列表
- 博客分类:
好久没有写关于centos系统的服务搭建,本次采用stream9搭建dns服务
1、centos.org 下载centos stream9 iso,安装dns服务器;以下操作需要su权限;
2、配置服务器的ip及dns,使主机可访问外网;
3、此时查看bind的rpm包 rpm - qa | grep bind显示bind9,但是etc/named.conf文件是没有的,需要安装bind才能出现;
[z@localhost ~]$ rpm -qa | grep bind
bind-license-9.16.23-4.el9.noarch
bind-libs-9.16.23- ...
- 2022-11-23 17:56
- 浏览 456
- 分类:操作系统
- 博客分类:
机房内设备升级改造,核心交换机与3台互联网路由器对接,中间通过防火墙加固
网络改造完发现其中一台华为路由器分发的默认路由没有进入核心交换机的路由表中。
show ip route
0.0.0.0/0 [110/1] via 10.108.50.105, 01:56:25, gigabitethernet1/0/10
[110/1] via 10.108.50.102, 02:03:50, gigabitethernet2/0/21
查看ospf 数据库,发现3台路由器的默认路由通告正常发布,且收到的metric值也无异常;
show ...
- 2020-11-12 17:30
- 浏览 874
- 分类:互联网
vsftp创建虚拟用户
1、编写密码文件
vi virtusers,写明用户名、密码(单双行)
------------------
user1
sadlfnks
-------------------
2、生成密码*.db文件
db_load -t -t hash -f /etc/vsftpd/virtusers /etc/vsftpd/virtusers.db
如果修改密码需要删除已有virtusers.db文件;
修改密码文件权限chmod 600 /etc/vsftpd/virtusers.db;
3、配置用户024ftp配置文件
在/etc/vsftpd/vconf 虚拟用户 ...
- 2020-08-26 16:10
- 浏览 1201
- 分类:开源软件
- 博客分类:
windows2019服务器迁移dhcp服务到centos7
1、powershell导出服务器全部作用域
get-dhcpserverv4scope -computername win-d2f3v83uddg >> scope-ip.txt
2、powershell 导出服务器全部保留ip
get-dhcpserverv4scope -computername win-d2f3v83uddg | get-dhcpserverv4reservation -computername win-d2f3v83uddg >> reservation-ip.txt
3、 ...
- 2020-04-15 17:51
- 浏览 363
- 分类:开源软件
- 博客分类:
centos7搭建dns服务后,客户端nslookup无法解析,发现端口被iptables阻止;
通过iptables -i input -p udp -m multiport --dports 53 -j 命令添加;
通过service iptables save保存配置后,重启服务器仍不生效;
需要通过解除其开机自启动项,再添加其开机自启动项后解决;
停止服务
[root@localhost ~]# systemctl stop firewalld.service
禁止开机启动
[root@localhost ~]# systemctl disable firewal ...
- 2020-04-09 16:01
- 浏览 304
- 分类:开源软件
- 博客分类:
近期在搞电脑配置盘点,为方便员工自查信息,编写已下代码提升采集效率;
原理:通过windows系统 wmic 获取硬件及360安装情况,编写bat代码
@echo off
echo 开始获取计算机信息
echo step 0 clear d:\pcinfo.html file!!!
del /a/f/q "d:\pcinfo.html"
echo step 1 get mainboard information
wmic computersystem get manufacturer,model /format:htable >> d:\pcinfo.htm ...
- 2020-04-09 15:52
- 浏览 432
- 分类:操作系统
使用文本编辑器打开etc/apt/sources.list文件;
在最后增行添加如下内容
#debian 9 "stretch"
deb http://httpredir.debian.org/debian/ stretch main contrib non-free
另存到登录用的home/桌面 文件夹下面
复制编制过的文件到etc/apt/文件夹里,进入home/桌面文件夹,复制并覆盖文件
cp -f sources.list.list /etc/apt
升级包,需要连接网线下载包
apt-get update
安装包
apt-get install firmware-i ...
- 2019-09-18 20:22
- 浏览 387
- 分类:操作系统
最近将2012r2的nps配置迁移到2019上
2012r2导出nps配置
export-npsconfiguration –path c:\config.xml
2019导入nps配置
import-npsconfiguration -path "c:\npsconfig.xml"
2019启动后通过aruba ac进行mschapv2测试发现认证超时通过尝试重启动nps服务无效,检查防火墙配置nps已经全部放行,经过排查2019系统中具有【活动域网络】防火墙,关闭后mschapv2测试域账号认证正常。
- 2019-07-11 14:59
- 浏览 769
- 分类:操作系统
问题现象:
postgresql-11.4-2-windows-x64.exe无法安装,或者提示getlocales错误或者dll文件错误
排除步骤:
1、在安装程序所在目录下,编写一个内含postgresql-11.4-2-windows-x64.exe - -install_runtimes 0 命令的的bat文件运行即可,或者在目录中按住ctrl,右击鼠标,运行命令行,输入postgresql-11.4-2-windows-x64.exe - -install_runtimes 0 安装即可;
2、如果出现there has been an error.error running c: ...
- 2019-06-30 13:51
- 浏览 1501
- 分类:操作系统
备份
进入postgressql目录的bin子目录(带有pg_dump程序的)执行以下命令
pg_dump -h localhost -u postgres postgres > c:\databasename.bak
几个参数 localhost[在数据库服务器上本地执行] , postgres [第二个是数据库名字]
恢复
psql -h localhost -u postgres -d postgres < d:\databasename.bak
几个参数 localhost[在数据库服务器上本地执行] , postgres [第二个是数据库名字]
- 2019-06-29 14:28
- 浏览 517
- 分类:数据库
1,下载pip安装包pip-19.1.1.tar.gz;
2,解压缩后出现 setup.py文件,然后在目录中通过shift 右击,点击在此处打开命令窗口,通过python setup.py install,进行安装;
3,安装后,通过cmd窗口中,输入pip list,查看命令是否起作用;
4,使用pip install -u pip ,对pip进行升级;
5,使用pip install psycopg2,安装postgresql数据驱动;
注意:
1,python不要装在c盘中,另外需要连接互联网;
2,postgresql安装后 pgadmin运行报错msvcp140.dll丢失错误,可 ...
- 2019-06-29 11:43
- 浏览 583
- 分类:开源软件
近日在研究如何把老服务器从光纤存储矩阵中剥离实现服务器与磁盘阵列的直连高可用通信,花了3天时间大致摸出配置过程中的一些关键点:
1、x3850x6,raid卡有多种型号(raid卡上还需要增加扩展卡才支持raid5,默认0、1、10)� ...
- 2019-06-19 10:47
- 浏览 485
- 分类:行业应用
- 博客分类:
microsoft diskpart 版本 10.0.17134.1
凯发k8国际 copyright (c) microsoft corporation.
在计算机上: desktop-9v6s298
diskpart> list disk
磁盘 ### 状态 大小 可用 dyn gpt
-------- ------------- ------- ------- --- ---
磁盘 0 联机 223 gb 0 b
磁盘 1 联机 7800 mb ...
- 2019-05-21 17:19
- 浏览 1323
- 分类:操作系统
最近测试python编程登陆,发现apache总是报错
[tue mar 05 10:26:58.837624 2019] [cgi:error] [pid 3096:tid 1192] [client 127.0.0.1:58566] malformed header from script 'login_check.py': bad header: 1, referer: http://127.0.0.1/login.html
查阅很多文章需要把头部输出调整为 print("content-type:text/html\n\n")
但始终未果,最后在日志中发现错误重要 ...
- 2019-03-05 10:57
- 浏览 548
- 分类:编程语言
采用administrator权限安装postgresql在windows10报错
problem running post-install step.installation may not complete correctly the database cluster initialisation failed.
原因安装过程无法创建postgresql用户,无法初始化数据库;
windows上创建postgres用户
c:\windows\system32>net user postgres postgres /add
1)创建目录data
d:\program files\p ...
- 2019-02-25 13:51
- 浏览 1258
- 分类:数据库
« 上一页 1 …