当前位置:网站首页>RedHat6之smb服务访问速度慢解决办法记录
RedHat6之smb服务访问速度慢解决办法记录
2022-04-23 05:43:00 【慕美文】
最近遇到特别棘手的事,公司文件服务器硬盘满了,虽然我装服务器的时候选择的是lvm分区,但是服务器做了raid5,新插入的两块硬盘能读到,也能加到pv里,就是容量扩不进去。着急用,所以毅然格式化重做了服务器(我真是个菜鸡呀)
重新搭建smb服务后发现访问超级慢(就是连接的时候要等好久,只要连上了,访问速度就不慢了),把解决方法记录下,防止自己以后忘了:
$ sudo cat /etc/sysconfig/network
确认HOSTNAME对应服务器的名字,GATEWAY对应服务器IP.
$ sudo cat /etc/hosts
确认127.0.0.1后边对应服务器名字
我这里hosts文件IP后边对应的是localhost,把这一行注释掉,回车自己写一行IP对应机器名的语句。
$ sudo vim /etc/hosts
#127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
127.0.0.1 test
是因为hosts或network里IP对应的不是本机的名字造成的。
版权声明
本文为[慕美文]所创,转载请带上原文链接,感谢
https://blog.csdn.net/penetrate/article/details/80077346
边栏推荐
- Object to map
- Markdown syntax support test
- Excel sets row and column colors according to cell contents
- mysql如何将存储的秒转换为日期
- MySQL realizes master-slave replication / master-slave synchronization
- protected( 被 protected 修饰的成员对于本包和其子类可见)
- MySQL创建oracle练习表
- TypeScript interface & type 粗略理解
- Radar equipment (greedy)
- refused connection
猜你喜欢
Excel sets row and column colors according to cell contents
建表到页面完整实例演示—联表查询
Frequently asked interview questions - 2 (computer network)
C语言——恶搞关机小程序
Flutter nouvelle génération de rendu graphique Impeller
Data mining -- understanding data
OSI层常用协议
JDBC连接数据库
opensips(1)——安装opensips详细流程
Deep learning object detection
随机推荐
Frequently asked interview questions - 1 (non technical)
windows连接mysql出现ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost‘ (10061)
2 - software design principles
Ora: 28547 connection to server failed probable Oracle net admin error
idea插件---背景播放歌曲
自定义异常类
异常的处理:抓抛模型
js数字大写方法
MySQL realizes master-slave replication / master-slave synchronization
线性规划问题中可行解,基本解和基本可行解有什么区别?
The list attribute in the entity is empty or null, and is set to an empty array
Jiugong magic square - the 8th Lanqiao provincial competition - group C (DFS and comparison of all magic square types)
jdbc入门\获取数据库连接\使用PreparedStatement
多线程与高并发(3)——synchronized原理
Sword finger offer II 022 The entry node of the link in the linked list
Typescript interface & type rough understanding
solidity合约DOS攻击
Range of numbers (dichotomous classic template topic)
实体中list属性为空或者null,设置为空数组
一文读懂当前常用的加密技术体系(对称、非对称、信息摘要、数字签名、数字证书、公钥体系)