上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 33 下一页
2017年1月4日
摘要: Centos7中默认将原来的防火墙iptables升级为了firewalld,firewalld跟iptables比起来至少有两大好处: 1、firewalld可以动态修改单条规则,而不需要像iptables那样,在修改了规则后必须得全部刷新才可以生效; 2、firewalld在使用上要比iptab 阅读全文
posted @ 2017-01-04 18:20 ChaseForFuture 阅读(213) 评论(0) 推荐(0)
摘要: 操作系统:centos7.1 (在ubuntu上测试过,不支持 screen) 主机:虚拟云主机 问题出现:在使用打包式在线安装phpstudy时,由于安装过程非常漫长,http报文过一段时间没有回送,ssh连接就会断开。 解决办法:使用screen进行会话管理,在连接断开后,再次登录终端,使安装过 阅读全文
posted @ 2017-01-04 16:52 ChaseForFuture 阅读(635) 评论(0) 推荐(0)
2017年1月3日
摘要: 语法是: iptables -D chain rulenum [options] 其中: chain 是链的意思,就是INPUT FORWARD 之类的定语 rulenum 是该条规则的编号。从1开始。可以使用iptables -L INPUT --line-numbers列出指定的链的规则的编号来 阅读全文
posted @ 2017-01-03 23:52 ChaseForFuture 阅读(1697) 评论(0) 推荐(0)
摘要: 问题出现:ueditor不存在远程和本地仓库,项目的pom.xml中无法添加依赖,导致无法使用mvn打包发布 解决办法:将ueditor-1.1.2.jar添加到本地仓库 办法1.使用命令行,这个没就不使了,入手maven时就讲过。 办法2:使用eclipse的import,这种方式简单易用,很推荐 阅读全文
posted @ 2017-01-03 23:11 ChaseForFuture 阅读(927) 评论(0) 推荐(0)
摘要: Centos使用chkconfig命令来更新(启动或停止)和查询系统服务的运行级信息。 谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接。 使用语法: chkconfig [--add][--del][--list][系统服务] 或 chkconfig [--leve 阅读全文
posted @ 2017-01-03 13:57 ChaseForFuture 阅读(192) 评论(0) 推荐(0)
摘要: show databases show tables information_schema show tables 语句的输出不包含temporary表 查看服务器所有数据库 >show databases 查看给定数据库的 create database语句 >show create databa 阅读全文
posted @ 2017-01-03 13:55 ChaseForFuture 阅读(166) 评论(0) 推荐(0)
摘要: use db_name select * from db_name.tbl_name 显示所有数据库 mysql> select schema_name from information_schema.schemata; + + | schema_name | + + | information_s 阅读全文
posted @ 2017-01-03 13:47 ChaseForFuture 阅读(184) 评论(0) 推荐(0)
摘要: 主键 create table feng( teamno int not null, playerno int not null, division char(6) not null, primary key(teamno) ) teamno int not null, playerno int n 阅读全文
posted @ 2017-01-03 13:45 ChaseForFuture 阅读(270) 评论(0) 推荐(0)
摘要: 用户管理 mysql>use mysql; 查看 mysql> select host,user,password from user ; 创建用户 mysql> create user zx_root@'%' IDENTIFIED by 'xxxxx'; -- identified by 会将纯文 阅读全文
posted @ 2017-01-03 13:44 ChaseForFuture 阅读(161) 评论(0) 推荐(0)
2017年1月2日
摘要: #include "reg52.h" typedef unsigned char u8; typedef unsigned int u16; sbit led = P2^0; sbit k1 = P3^1; void delay(u16 i) { while(i--); } void keypros() { if(k1==0) { //等待抖动退去 这种方式占用CPU 不推荐使用 ... 阅读全文
posted @ 2017-01-02 19:56 ChaseForFuture 阅读(174) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 33 下一页