debian禁止或者允许指定ip访问远程mysql、ssh、rsynccat /etc/xinetd.conf
2024-08-24 23:29:07
如果没有安装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
最新文章
- linux下flash的安装
- Stopwatch 类
- js下的面向对象
- phpcms更换域名用户无法注册问题
- 2016/10/28 很久没更了 leetcode解题 3sum
- js获取浏览器的版本代码
- Bitmap.Config 详解
- 解决IE6下浮动层固定定位的经典方法
- 【SummaryPlan】Summary of Feb &; Plan of March——How to 'just do it'?
- MS SQL SERVER 2008 R2 实例服务启动出现10048错误解决办法
- 延长FLASH和EEPROM芯片写入次数的小方法
- Hibernate与iBATIS的比较
- Android Activity之间通信
- C语言中的函数、数组与指针
- vue-cli如何引入bootstrap工具
- c#基础知识索引器
- [HEOI2015]小Z的房间
- Python——类的封装
- sql 语句中count()有条件的时候为什么要加上or null
- C# 基础 new 、override实现多台区别