Loading

邢栋博客

mysql慢查询日志以及日志分析工具

show variables like "slow_query_log"; //确认是否开启慢查询 show variables like "%log%"; //查看更多日志信息 set global slow_query_log = on; //开启 show variables like "%slow%";//查看慢查询的信息,如下,可以单独设置更改 set global_slow_query_log_file = '/home/mysql/sql_log/mysql-slow.log'; ...

linux安装samba服务并使得在window下快速开发

linux:centos 环境:lamp 一、安装及配置samba yum –y install samba* –skip-broken vim /etc/samba/smb.conf [web] path=/usr/local/apache2/htdocs/ browseable=yes writable=yes 二、创建用户并且acl权限配置 1.useradd apache 2.setfacl -m u:apache:rwx -R /usr/local/apache2/htdocs 3.setfacl -m d:u:apache:rwx -R /...

用户登录前端验证(可继续验证后端)

html 代码 <form action="login.php" method="post" id="mylogin"> <div class="login_info"><div id="login_error"></div></div> <div class="login_c1"> <input type="text" name="user...

sublime text 3 许可证 激活码

适合sublime text 3 3103版本 —– BEGIN LICENSE —– Michael Barnes Single User License EA7E-821385 8A353C41 872A0D5C DF9B2950 AFF6F667 C458EA6D 8EA3C286 98D1D650 131A97AB AA919AEC EF20E143 B361B1E7 4C8B7F04 B085E65E 2F5F5360 8489D422 FB8FC1AA 93F6323C FD7F7544 3F39C318 D95E6480 FCCC7561 ...

js时间转换函数

把时间转换成时间戳 <script type="text/javascript"> function transdate(Time){ var date=new Date(); date.setFullYear(Time.substring(0,4)); date.setMonth(Time.substring(5,7)-1); date.setDate(Time.substring(8,10)); date.setHours(Time.substring(11,...

不使用submit按钮来提交表单

<script language="javascript"> function gosubmit(){ document.myfrom.submit(); } </script> <form name="myfrom" method="post" action="post.php"> <input type="text" name="username" /> <span onclick="gosubmit()">提交</sp...

json_encode()转码中文显示不正常解决办法

php5.4以上版本. json_encode($data,JSON_UNESCAPED_UNICODE)

chrome谷歌浏览器下input内text不垂直居中解决办法

加入样式 input { font:16px "Microsoft YaHei", arial; /font:16px arial;/ height:35px; line-height:35px\9; _line-height:36px; width:300px;; padding-left:4px; border:1px solid #ccc; }

让nginx支持ThinkPHP3.2.2的URL重写并可通过网址访问

server { listen 80; server_name www.xingdong365.com; location / { #root /usr/share/nginx/html; root /data/www/xingdong365/; index index.html index.htm index.php; if (!-e $request_filename) { rewrite ^/(.*)$ /ind...

网页中css去除滚动条

<body scroll="no">