03 2018 档案

摘要:linux下定时执行任务的方法: 在LINUX中你应该先输入crontab -e,然后就会有个vi编辑界面,再输入0 3 * * 1 /clearigame2内容到里面 :wq 保存退出。 在LINUX中,周期执行的任务一般由cron这个守护进程来处理[ps -ef|grep cron]。cron读 阅读全文
posted @ 2018-03-22 11:01 AllenClare 阅读(14652) 评论(0) 推荐(0)
摘要:1)查看防火墙状态 查看防火墙状态: /etc/init.d/iptables status 暂时关闭防火墙: /etc/init.d/iptables stop 重启防火墙: /etc/init.d/iptables restart 启动防火墙: /etc/init.d/iptables star 阅读全文
posted @ 2018-03-13 15:54 AllenClare 阅读(3294) 评论(0) 推荐(0)
摘要:Linux默认是允许Ping响应的,系统是否允许Ping由2个因素决定的:A、内核参数,B、防火墙,需要2个因素同时允许才能允许Ping,2个因素有任意一个禁Ping就无法Ping。 一、通过修改配置文件实现: 具体的配置方法如下: 1、设置临时允许或禁止ping: 1).临时允许ping的命令为: 阅读全文
posted @ 2018-03-13 14:05 AllenClare 阅读(249) 评论(0) 推荐(0)
摘要:问题: 数据库编码格式为utf8,表和字段也都是utf8,存进去的格式是utf-8但是用命令行工具查询命令select * from 表名; 查询出来的中文是乱码。 原因: MySQL客户端根本就不能以utf8的形式返回数据 解决如下: SET NAMES GB2312; 在命令行执行即可解决 阅读全文
posted @ 2018-03-01 16:51 AllenClare 阅读(2599) 评论(0) 推荐(0)
摘要:1、错误如下图: 2、这个是由于mysql中user表中未设置允许该ip访问导致,解决办法: 1)查下user表:select user,host from user; 这张表就是mysql.user表,记录了mysql的用户信息,用户@主机 用户就是你的用户名,主机是来源主机, 1.任意@% 表示 阅读全文
posted @ 2018-03-01 16:45 AllenClare 阅读(3965) 评论(0) 推荐(0)