如果没有安装xinetd,安装xinetd  apt-get install xinetd

然后创建配置文件 vi /etc/xinetd.d/mysqld

service login
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/mysqld
instances =
}

然后重启服务 /etc/init.d/xinetd restart

查看状态 /etc/init.d/xinetd status

修改hosts.allow和hosts.deny文件 vim /etc/hosts.allow

ALL: 127.0.0.1 

vim /etc/hosts.deny

mysqld:ALL

然后设置开机启动,在 /etc/rc.local 增加 /usr/bin/mysqld --daemon

最新文章

  1. linux下flash的安装
  2. Stopwatch 类
  3. js下的面向对象
  4. phpcms更换域名用户无法注册问题
  5. 2016/10/28 很久没更了 leetcode解题 3sum
  6. js获取浏览器的版本代码
  7. Bitmap.Config 详解
  8. 解决IE6下浮动层固定定位的经典方法
  9. 【SummaryPlan】Summary of Feb & Plan of March——How to 'just do it'?
  10. MS SQL SERVER 2008 R2 实例服务启动出现10048错误解决办法
  11. 延长FLASH和EEPROM芯片写入次数的小方法
  12. Hibernate与iBATIS的比较
  13. Android Activity之间通信
  14. C语言中的函数、数组与指针
  15. vue-cli如何引入bootstrap工具
  16. c#基础知识索引器
  17. [HEOI2015]小Z的房间
  18. Python——类的封装
  19. sql 语句中count()有条件的时候为什么要加上or null
  20. C# 基础 new 、override实现多台区别

热门文章

  1. struts集合类型封装
  2. rust 入门
  3. Linux下不能挂载NTFS格式硬盘/U盘
  4. Spring之IOC,DI,动态代理,反射
  5. [ python ] FTP作业进阶
  6. C#子线程中更新ui
  7. 【转载】python-协程
  8. Jmeter组件和属性(二)
  9. 三十分钟理解计算图上的微积分:Backpropagation,反向微分
  10. go接口及嵌入类型例子