当前位置:网站首页>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
边栏推荐
- Character recognition easyocr
- Isosceles triangle - the 9th Lanqiao provincial competition - group C
- Solid contract DoS attack
- C3P0数据库连接池使用
- Relative reference and absolute reference of Excel
- POI generates excel and inserts pictures
- Introduction to data security -- detailed explanation of database audit system
- 尚硅谷 p290 多态性练习
- Typescript interface & type rough understanding
- Common status codes
猜你喜欢
Data mining -- understanding data
橙单微服务之批量导入
MySQL lock mechanism
Deep learning object detection
一文读懂当前常用的加密技术体系(对称、非对称、信息摘要、数字签名、数字证书、公钥体系)
JVM系列(4)——内存溢出(OOM)
‘EddiesObservations‘ object has no attribute ‘filled‘
软件架构设计——软件架构风格
2-软件设计原则
Pilotage growth · ingenuity empowerment -- yonmaster developer training and pilotage plan is fully launched
随机推荐
Differences between sea level anatomy and sea surface height anatomy
Find the number of "blocks" in the matrix (BFS)
PreparedStatement防止SQL注入
Sword finger offer II 022 The entry node of the link in the linked list
POI exports to excel, and the same row of data is automatically merged into cells
2-軟件設計原則
数据安全入门产品——数据库审计系统详解
Flutter nouvelle génération de rendu graphique Impeller
poi导出excel,行相同数据自动合并单元格
Reading notes of modern methods of C language programming
一文读懂当前常用的加密技术体系(对称、非对称、信息摘要、数字签名、数字证书、公钥体系)
踩坑:nacos利用startup.cmd -m standalone启动错误
Common protocols of OSI layer
POI generates excel and inserts pictures
Introduction to data security -- detailed explanation of database audit system
Flutter 新一代图形渲染器 Impeller
JDBC操作事务
Map object map get(key)
windows连接mysql出现ERROR 2003 (HY000): Can‘t connect to MySQL server on ‘localhost‘ (10061)
excel获取两列数据的差异数据