码迷,mamicode.com
首页 > 数据库 > 详细

mysql命令

时间:2020-04-19 13:02:14      阅读:70      评论:0      收藏:0      [点我收藏+]

标签:table   yum源   ntpdate   建立   cmake   epel   mysql   -o   top   

关闭防火墙和selinux:
systemctl stop firewalld.service
setenforce 0
永久关闭防火墙和selinux:
systemctl disable firewalld.service
sed -i ‘/^SELINUX/s#enforcing#disabled#g’ /etc/selinux/config
安装wget:
yum install -y wget
国内yum源:
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
清除YUM缓存:
yum clean all
建立一个缓存:
yum makecache
安装一些基本命令
yum -y install gcc gcc-c++ cmake curl nmap lrzsz unzip zip ntpdate telnet vim tree bash-completion iptables-services ntp dos2unix lsof net-tools sysstat
同步时间,需要等5分钟:
echo “*/5 * * * * /usr/sbin/ntpdate ntp1.aliyun.com >/dev/null 2>&1”>>/var/spool/cron/root
同步时间:
/usr/sbin/ntpdate ntp1.aliyun.com
关闭图形
systemctl stop NetworkManager
永久关闭图形
systemctl disable NetworkManager

mysql命令

标签:table   yum源   ntpdate   建立   cmake   epel   mysql   -o   top   

原文地址:https://www.cnblogs.com/wanglinyan/p/12730789.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!