2013年5月1日

mysql netstat

摘要: netstat命令是一个监控TCP/IP网络的非常有用的工具,它可以显示路由表、实际的网络连接以及每一个网络接口设备的状态信息输出结果可以分为两个部分,一个是Active Internet connections,另一个是Active UNIX domain sockets.[root@DBSVR02 conf]# netstatActive Internet connections (w/o servers)Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 168.168.80.9:ssh 168.168.80.1 阅读全文

posted @ 2013-05-01 20:18 simhare 阅读(574) 评论(0) 推荐(0) 编辑

linux pts tty

摘要: 一直想不明白的pts和tty的区别:我先用xShell登录,这个登录就是pts/0, 或者pts/1,或者pts/2。。。。。再直接从服务器端登录,这个登录就是tty1, 就是不知道会不会有tty2,tty3。。。。 阅读全文

posted @ 2013-05-01 13:54 simhare 阅读(244) 评论(0) 推荐(0) 编辑

linux pts

摘要: 一直想不明白的pts和tty的区别: 阅读全文

posted @ 2013-05-01 13:49 simhare 阅读(457) 评论(0) 推荐(0) 编辑

Linux 启动 进入单用户模式 其他用户无法连接

摘要: 使用单用户模式有一个前提,就是您的系统引导器(grub)能正常工作,否则要进行系统维护就要使用修复模式。特注:进入单用户模式,没有开启网络服务,不支持远程连接CentOS系统中不同的运行级别(Run Level)代表了系统的不同运行状态,例如 Linux 服务器正常运行时处于运行级别3,是能够提供网络服务的多用户模式;而运行级别 1 只允许管理员通过服务器主机的单一控制台进行操作,即“单用户模式”。以CentOS系统为例:CentOS系统进入单用户模式。进入单用户模式的前提是CentOS系统引导器能正常工作。下面以 GRUB 为例说明进入方法。I. 加电,启动到如下界面时,按ESC:II. 进 阅读全文

posted @ 2013-05-01 12:36 simhare 阅读(1202) 评论(0) 推荐(0) 编辑

apache start stop

摘要: [root@DBSVR01 e]# service httpd statushttpd is stopped[root@DBSVR01 e]# apachectl starthttpd: Could not reliably determine the server's fully qualified domain name, using 168.168.80.8 for ServerName[root@DBSVR01 e]# vim /etc/hosts[root@DBSVR01 e]# [root@DBSVR01 e]# apachectl starthttpd: Could no 阅读全文

posted @ 2013-05-01 02:47 simhare 阅读(417) 评论(0) 推荐(0) 编辑

PHP php-xml

摘要: [root@DBSVR01 e]# yum install php-xml.i686Loaded plugins: fastestmirror, securityLoading mirror speeds from cached hostfile* base: centos.ustc.edu.cn* extras: centos.ustc.edu.cn* updates: ftp.twaren.netSetting up Install ProcessResolving Dependencies--> Running transaction check---> Package ph 阅读全文

posted @ 2013-05-01 02:30 simhare 阅读(973) 评论(0) 推荐(0) 编辑

PHP-PDO

摘要: PDO is an acronym for PHP Data Objects. PDO is a lean, consistent way to access databases. This means developers can write portable code much easier. PDO is not an abstraction layer like PearDB. PDO is a more like a data access layer which uses a unified API (Application Programming Interface).How t 阅读全文

posted @ 2013-05-01 02:04 simhare 阅读(1535) 评论(0) 推荐(0) 编辑

PHP symphony check

该文被密码保护。 阅读全文

posted @ 2013-05-01 01:56 simhare 阅读(3) 评论(0) 推荐(0) 编辑

php install

该文被密码保护。 阅读全文

posted @ 2013-05-01 01:50 simhare 阅读(2) 评论(0) 推荐(0) 编辑

mysql create table primary key auto_increment

摘要: mysql> create table ss(id int unsigned not null primary key auto_increment, user_name varchar(15) not null);Query OK, 0 rows affected (0.00 sec)mysql> mysql> insert into ss(id,user_name) values(1, 'jojo');Query OK, 1 row affected (0.00 sec)mysql> insert into ss(id,user_name) valu 阅读全文

posted @ 2013-05-01 01:19 simhare 阅读(5230) 评论(0) 推荐(0) 编辑

start | stop mysql

摘要: [root@DBSVR01 e]# service mysqld statusmysqld is stopped[root@DBSVR01 e]#==================================[root@DBSVR01 e]# service mysqld startInitializing MySQL database: Installing MySQL system tables...OKFilling help tables...OKTo start mysqld at boot time you have to copysupport-files/mysql.se 阅读全文

posted @ 2013-05-01 00:20 simhare 阅读(263) 评论(0) 推荐(0) 编辑

mysql ERROR 1045(28000)

摘要: [root@DBSVR01 e]# mysql -uroot -pEnter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)[root@DBSVR01 e]#=======================删除user.user中值为NULL的,或更新NULL为test 1)delete from user where user is NULL 2)update user set user=‘test‘ where user 阅读全文

posted @ 2013-05-01 00:14 simhare 阅读(288) 评论(0) 推荐(0) 编辑

which whereis

摘要: [root@DBSVR01 e]# which mysql/usr/bin/mysql[root@DBSVR01 e]# whereis mysqlmysql: /usr/bin/mysql /usr/lib/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz[root@DBSVR01 e]# 阅读全文

posted @ 2013-05-01 00:13 simhare 阅读(141) 评论(0) 推荐(0) 编辑

导航