一,Linux篇
1,停掉mysql服务:service mysql stop;
2,修改my.cnf文件,可以通过find / -name my.cnf来找到文件,里面内容包含[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql即是我们要找的文件,在user-mysql下加入:skip-grant-...
分类:
数据库 时间:
2014-05-26 04:06:14
阅读次数:
346
Several ports(8080,8009)required by Tomcat v6.0 Server at localhost are already in use.The server may already be running in another process, or a system process may be using the port, To start this server you will need to stop the other process or change t...
分类:
编程语言 时间:
2014-05-26 03:41:22
阅读次数:
364
ls
-l:长格式
文件类型:
-:普通文件 (f)
d: 目录文件
b: 块设备文件 (block)
c: 字符设备文件 (character)
l: 符号链接文件(symbolic link file)
p: 命令管道文件(pipe)
s: 套接字文件(socket)
文件权限:9位,每3位一组,每一组:rwx(读,写,执行), r--
文件硬链接的次数
文件的属主(o...
分类:
其他好文 时间:
2014-05-25 01:55:01
阅读次数:
262
编写一个简易的HTTP代理服务器,步骤其实很简单:
1.设置一个监听套接字gListen_Socket;
2.每当接受到客户端的请求之后,我们构建一个新的线程来继续监听客户端的请求,然后原线程处理用户请求;
3.先从用户发送的HTTP请求中解析出服务器端的主机地址,然后通过另外一个线程连接到服务器;
4.本程序充当中介,不断转发来自两端的消息;...
分类:
其他好文 时间:
2014-05-24 23:43:47
阅读次数:
534
SocketServer
TCPServer,UDPServer,UnixStreamServer,UnixDatagramServer...
分类:
编程语言 时间:
2014-05-24 22:03:54
阅读次数:
424
题目
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
Here, we will use the i...
分类:
其他好文 时间:
2014-05-24 20:30:21
阅读次数:
342
对TCP/IP、UDP、Socket编程这些词你不会很陌生吧?随着网络技术的发展,这些词充斥着我们的耳朵。那么我想问:1. 什么是TCP/IP、UDP?2.
Socket在哪里呢?3. Socket是什么呢?4. 你会使用它们吗?什么是TCP/IP、UDP? TCP/IP(Transmission....
分类:
其他好文 时间:
2014-05-24 13:11:20
阅读次数:
351
唉! 有用的拿去吧。 直接可以用。 1 package com.tai.use; 2 3 import
java.text.SimpleDateFormat; 4 5 public class DataUtil 6 { 7 /** 8 * 时间格式转换,将字...
分类:
其他好文 时间:
2014-05-24 12:47:52
阅读次数:
439
1 package com.tai.use; 2 3 import
java.text.DateFormat; 4 import java.text.SimpleDateFormat; 5 import
java.util.Calendar; 6 import java.util.Date; 7.....
分类:
其他好文 时间:
2014-05-24 11:51:15
阅读次数:
302
第一步:连接数据库服务器mysql_connect("数据库服务器地址","用户名","密码")第二步:设定跟数据库打交道的网页的编码mysql_query("set
names 编码名") //通常就是utf8第三步:设定要使用的数据库名:mysql_query("use 数据库名");第四步:执...
分类:
数据库 时间:
2014-05-24 11:39:01
阅读次数:
262