栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

大数据-大数据服务器环境运维常用命令-Centos7(持续更新完善)

大数据-大数据服务器环境运维常用命令-Centos7(持续更新完善)

查看服务器公网ip
curl cip.cc
禁用用透明大页面压缩
sudo echo never > /sys/kernel/mm/transparent_hugepage/defrag
sudo echo never > /sys/kernel/mm/transparent_hugepage/enabled

sudo echo never > /sys/kernel/mm/transparent_hugepage/enabled
sudo echo never > /sys/kernel/mm/transparent_hugepage/defrag
查看CPU信息(型号)
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
查看物理CPU个数
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l
查看每个物理CPU中core的个数(即核数)
cat /proc/cpuinfo| grep "cpu cores"| uniq
查看逻辑CPU的个数
cat /proc/cpuinfo| grep "processor"| wc -l
查看所有3306端口使用情况
netstat -an | grep 3306

6.2 关闭防火墙和清空规则
    systemctl status firewalld
    systemctl stop firewalld
    systemctl disable firewalld
    iptables -F
重启网卡命令
 systemctl restart network
6.3 selinux关闭
vi /etc/selinux/config 

 This file controls the state of SELinux on the system.
 SELINUX= can take one of these three values:
     enforcing - SELinux security policy is enforced.
     permissive - SELinux prints warnings instead of enforcing.
    disabled - No SELinux policy is loaded.
SELINUX=disabled
 SELINUXTYPE= can take one of three two values:
     targeted - Targeted processes are protected,
     minimum - Modification of targeted policy. only selected processes are protected. 
     mls - Multi Level Security protection.
SELINUXTYPE=targeted
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/674095.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号