好咖啡要和朋友一起品尝,好“模板”也要和同样喜欢它的人一起分享。 网站首页心得笔记
马哥linux运维学习笔记-MySQL系列之十二——MySQL日志管理
发布时间:2019-03-17 13:51:26作者:雪饮

在mysql控制台查看某二进制日志文件mysql> show binlog events in 'mysql-bin.000009';+------------------+-----+-------------+-----------+-------------+-------------
详细信息>>马哥linux运维学习笔记-MySQL系列之九——MySQL事务和隔离级别
发布时间:2019-03-17 13:50:18作者:雪饮

insert的set用法mysql> insert into test set id=36;Query OK, 1 row affected (0.00 sec)从一张表中获取数据插入到另外一张表中mysql> insert into test(id) select id fr
详细信息>>马哥linux运维学习笔记-MySQL系列之八——多表查询、子查询及视图
发布时间:2019-03-15 17:51:42作者:雪饮

查看视图的创建过程mysql> show create view stc\G*************************** 1. row *************************** View: stc Create View: CREA
详细信息>>马哥linux运维学习笔记-MySQL系列之七——单表查询、多表查询和子查询
发布时间:2019-03-15 17:50:46作者:雪饮

查询结果指定某个字段去重正常查询mysql> select money from s_user where money>0;+-------+| money |+-------+| 1 || 1 |+-------+去重查询mysql> select distin
详细信息>>马哥linux运维学习笔记-MySQL系列之六——MySQL管理表和索引
发布时间:2019-03-15 17:49:39作者:雪饮

创建数据库mysql> create schema if not exists students character set 'gbk' collate 'gbk_chinese_ci';Query OK, 1 row affected (0.00 sec)schema:创建数据库的关键字ch
详细信息>>马哥linux运维学习笔记-MySQL系列之五——MySQL数据类型及sql模型
发布时间:2019-03-15 17:48:20作者:雪饮

查看某表状态mysql> show table status like 'user'\G*************************** 1. row *************************** Name: user Engine: MyISAM
详细信息>>马哥linux运维学习笔记-mysql系列之四mysql客户端工具的使用
发布时间:2019-03-13 20:18:36作者:雪饮

mysql -D-D可指定连接时默认自动use到某个库[root@localhost mysql]# mysqlWelcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 2Serv
详细信息>>马哥linux运维学习笔记-mysql系列之三MySQL数据库基础及编译安装(mysql5.5.28)
发布时间:2019-03-13 20:16:10作者:雪饮

编译安装mysql5.5.28前需要先安装cmake安装cmake2.8.8[root@localhost src]# tar -zxvf cmake-2.8.8.tar.gz[root@localhost src]# cd cmake-2.8.8[root@localhost cmake-2.
详细信息>>马哥linux运维学习笔记-配置使用vnc服务
发布时间:2019-03-11 17:18:57作者:雪饮

vnc服务是一个跨平台的远程桌面,其连接是明文的,不太安全传统的通过虚拟机内部访问其桌面,编辑文本时候复制一些东西在物理机与linux虚拟机之间交互都比较麻烦。使用vnc客户端
详细信息>>马哥linux运维学习笔记-bash脚本编程之在bash脚本中使用选项
发布时间:2019-03-11 17:17:36作者:雪饮

cat的使用方法-创建文件cat不仅仅用来查看文件,也可以用来创建文件[root@mail ~]# cat > 1.txt << EOF> 看例子是最快的熟悉方法> EOF[root@mail ~]# cat 1.txt看例子是最快
详细信息>>马哥linux运维学习笔记-bash编程系列之数组
发布时间:2019-03-11 17:16:31作者:雪饮

数组的声明与指定数组索引值的获取[root@mail ~]# cat test.sh#!/bin/bashAA=([0]=jerry [1]=tom [6]=nikita)echo $AA[0]执行结果[root@mail ~]# sh test.shjerry[0]上面定
详细信息>>马哥linux运维学习笔记-nss&pam
发布时间:2019-03-10 12:28:48作者:雪饮

仅允许指定用户组的用户登录在文件'/etc/pam.d/system-auth-ac'中'auth required pam_env.so'下插入'auth required pam_listfile.so item=group s
详细信息>>马哥linux运维学习笔记-tcp_wraper&xinetd2
发布时间:2019-03-10 12:27:46作者:雪饮

禁用telnet服务方法1[root@mail ~]# cat /etc/xinetd.d/telnet# default: on# description: The telnet server serves telnet sessions; it uses \# unencrypted use
详细信息>>马哥linux运维学习笔记-tcp_wraper&xinetd
发布时间:2019-03-10 12:22:23作者:雪饮

除了iptables以外,tcp_wraper也可以进行网络访问控制,而且规则更简单。但是并不是每个服务都能经过tcp_wraper进行访问控制。要想知道一个服务是否可以被tcp_wraper进行访问控
详细信息>>马哥linux运维学习笔记-samba之二
发布时间:2019-03-08 12:55:37作者:雪饮

windows建立网络共享linux显示windows网络共享服务器上的所有资源[root@mail ~]# smbclient -L 192.168.128.132Enter root's password:Domain=[XY-F2DFEE7A97F7] OS=[Windo
详细信息>>马哥linux运维学习笔记-samba之一
发布时间:2019-03-08 12:50:31作者:雪饮

安装samba3x[root@mail ~]# rpm -e samba-client samba-common这两个包要一起安装,否则每个单独安装就会互相各自依赖[root@mail ~]# rpm -ivh /test/Server/samba3x-winbind
详细信息>>马哥linux运维学习笔记-iptables系列之layer7-相关扩展的安装
发布时间:2019-03-08 12:47:27作者:雪饮

编译安装新版本iptables备份原iptables比较重要的一些文件[root@mail ~]# cp /etc/init.d/iptables /root/[root@mail ~]# cp /etc/sysconfig/iptables-config /root/卸载原
详细信息>>马哥linux运维学习笔记-iptables系列之layer7-内核编译
发布时间:2019-03-08 12:45:18作者:雪饮

layer7是实现基于应用协议的网络过滤必不可少的要想使用layer7需要先编译内核使内核支持,然后再安装相关扩展才可以为内核打补丁新增layer7[root@mail src]# tar -zxvf netfi
详细信息>>马哥linux运维学习笔记-iptables系列之nat及其过滤功能
发布时间:2019-03-06 18:41:53作者:雪饮

添加自定义链[root@mail ~]# iptables -N clean_in添加规则到自定义链[root@mail ~]# iptables -A clean_in -d 255.255.255.255 -p icmp -j DROP链的返回返回到其父规则并
详细信息>>马哥linux运维学习笔记-iptables系列之常用扩展模块
发布时间:2019-03-06 18:39:56作者:雪饮

持续ping在windows的ping命令中-t参数可以像linux中的ping一样只要你不终止就会一直ping下去C:\Users\Administrator>ping -t 192.168.1.11 正在 Ping 192.168.1.11 具有 32
详细信息>>马哥linux运维学习笔记-iptables系列之基本应用及显式扩展
发布时间:2019-03-06 18:38:46作者:雪饮

查看iptables过滤表[root@mail ~]# iptables -t filter -L -nChain INPUT (policy ACCEPT)target prot opt source destination Chain FORWARD (policy A
详细信息>>马哥linux运维学习笔记-nfs服务
发布时间:2019-03-04 17:05:59作者:雪饮

nfs服务开启:[root@mail ~]# service portmap startStarting portmap: [ OK ][root@mail ~]# service nfs startStarting NFS s
详细信息>>马哥linux运维学习笔记-禁锢ftp用户到家目录
发布时间:2019-03-04 17:05:11作者:雪饮

没有禁锢ftp到家目录前:linux端:[root@mail ~]# touch /home/hadoop/1.txtwindows端:C:\Users\Administrator>ftp 192.168.1.11连接到 192.168.1.11。220 (vsFTPd 2.0.5)用户(1
详细信息>>马哥linux运维学习笔记-ftp服务
发布时间:2019-03-04 17:03:40作者:雪饮

安装vspftd[root@mail ~]# rpm -ivh /test/Server/vsftpd-2.0.5-24.el5.i386.rpm[root@mail ~]# service vsftpd startStarting vsftpd for vsftpd:
详细信息>>马哥linux运维学习笔记-编译安装LAMP之配置httpd以FastCGI方式与php整合
发布时间:2019-02-08 09:13:33作者:雪饮

编译安装apache2.4.4./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd --enable-rewirte --enable-ssl --enable-cgi --enable-cgid --enable-modules=most
详细信息>>