自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(64)
  • 收藏
  • 关注

转载 学习linux第六十三天

主从不同步解决方案 主从同步配置好后,运行了一时间,出现了不同步现象,用命令检查,看到从上报下面错误: msyq > show slave status \G; Last_Errno: 1062 Last_Error: Error 'Duplicate entry '149' for...

2018-12-19 04:34:00 84

转载 学习linux第六十二天

xtrabackup 全量备份恢复 mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | mysq...

2018-12-18 01:36:00 132

转载 学习linux第六十一天

mysql主从配置 MySQL 主从又叫做Replication、AB复制。简单讲就是A和B两台机器做主从后,在A上写数据,另外一台B也会跟着写数据,两者数据实时同步的 MySQL主从是基于binlog的,主上须开启binlog才能进行主从。 主从过程大致有3个步骤 1)主将更改...

2018-12-15 01:25:00 129

转载 学习linux第六十天

配置tomcat监听80端口 [root@xuyao src]#vim /usr/local/tomcat/conf/server.xml <Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000...

2018-12-13 23:07:00 119

转载 学习linux第五十九天

Tomcat java程序写的jsp网站用tomcat+jdk来运行 tomcat是一个中间件,真正起作用的,解析java脚本的是jdk jdk(java development kit)是整个java的核心,它包含了java运行环境和一堆java相关的工具以及java基础库 最主...

2018-12-12 18:25:00 76

转载 学习linux第五十八天

ftp测试 [root@hanlin xuyao]#yum -y install lftp [root@hanlin xuyao]#lftp xuyao@127.0.0.1 口令: lftp xuyao@127.0.0.1:~> ls xshell xftp访...

2018-12-11 18:25:00 195

转载 学习linux第五十七天

exportfs 作用是在线添加或者删改nfs,不需要客户端卸载目录 服务端 [root@hanlin nfstestdir]#vim /etc/exports /home/nfstestdir192.168.0.0/24(rw,no_root_squash) /tmp ...

2018-12-10 23:36:00 122

转载 学习linux第五十六天

NFS服务搭建和配置 服务端 [root@hanlin ~]#yum -y install nfs-utils rpcbind [root@hanlin ~]#vim /etc/exports /home/nfstestdir 192.168.0.102/32(rw,sync,al...

2018-12-08 02:11:00 84

转载 学习linux第五十五天

mysql用户管理 [root@hanlin ~]#mysql -uroot -p123456a.(先用root登入) Warning: Using a password on the command line interface can be insecure. Welcome...

2018-12-06 22:52:00 78

转载 学习linux第五十四天

mysql常用操作 设置更改root密码 [root@hanlin ~]#/etc/init.d/mysqld start Starting MySQL SUCCESS! [root@hanlin ~]#181203 19:22:42 mysqld_safe A mysqld...

2018-12-05 22:03:00 98

转载 学习linux第五十三天

php-fpm的pool 建立多个php-fpm的pool,避免php资源不够,而且所有网站都使用一个池子。造成全面宕机 [root@hanlin nginx-1.12.1]# vim /usr/local/php-fpm/etc/php-fpm.conf [global] ...

2018-11-30 20:41:00 126

转载 学习linux第五十二天

nginx负载均衡 nginx不支持代理https,不支持443端口 查看域名解析的地址 [root@hanlin ~]#yum install bind-utils.x86_64 [root@hanlin ~]#digwww.baidu.com(相当于是ping域名解析,但...

2018-11-29 21:43:00 294

转载 学习linux第五十一天

nginx防盗链 [root@hanlin ~]# /etc/init.d/nginx start Starting nginx (via systemctl): [ 确定 ] [root@hanlin ~]# /etc/init.d/mysqld start Starting MySQL...

2018-11-28 21:41:00 273

转载 学习linux第五十天

nginx访问日志 [root@hanlin ~]#vim /usr/local/nginx/conf/nginx.conf user nobody nobody; worker_processes 2; error_log /usr/local/nginx/logs/nginx_...

2018-11-27 15:50:00 99

转载 学习linux第四十九天

nginx安装 [root@hanlin nginx-1.12.1]#wget http://nginx.org/download/nginx-1.12.1.tar.gz [root@hanlin nginx-1.12.1]#tar -zxvf nginx-1.12.1.tar.gz...

2018-11-27 00:32:00 344

转载 学习linux第四十八天

LNMP lnmp和lamp的区别 提供web功能的是不是apache了,二十nginx php作为独立的服务存在了,不在向lamp那样作为一个模块存在,这个服务叫做php-fpm nginx直接处理静态请求,动态的交给php-fpm,nginx处理静态文件比apache...

2018-11-24 03:01:00 132

转载 学习linux第四十七天

PHP扩展模块安装 [root@HANLIN ~]#cd /usr/local/src [root@HANLIN src]#wget https://codeload.github.com/phpredis/phpredis/zip/develop [root@HANLIN src]#mv...

2018-11-22 00:55:00 141

转载 学习linux第四十六天

限定某个目录禁止解析php 没限定之前,一切正常 [root@HANLIN upload]#curl -x192.168.0.106:80 111.com/upload/index.php -i HTTP/1.1 200 OK Date: Mon, 19 Nov 2018...

2018-11-21 03:01:00 916

转载 学习linux第四十五天

配置防盗链 [root@HANLIN 111.com]#vim /usr/local/apache2.4/conf/extra/httpd-vhosts.conf <VirtualHost *:80> DocumentRoot "/data/wwwroot/111.com...

2018-11-19 20:13:00 132

转载 学习linux第四十四天

访问日志不记录静态文件 [root@HANLIN /]# vim /usr/local/apache2.4/conf/extra/httpd-vhosts.conf <VirtualHost *:80> DocumentRoot "/data/wwwroot/111.com...

2018-11-17 00:26:00 163

转载 学习linux第四十三天

apache用户认证 [root@HANLIN extra]#vim /usr/local/apache2.4/conf/extra/httpd-vhosts.co <VirtualHost *:80> DocumentRoot "/data/wwwroot/111.c...

2018-11-16 03:54:00 393

转载 学习linux第四十二天

配置httpd支持php [root@hanlinxy etc]#/usr/local/apache2/bin/httpd -M (查看apache下的模块) httpd: Could not reliably determine the server's fully qualified...

2018-08-02 00:50:00 109

转载 学习linux第四十一天

php安装 [root@hanlinxy src]# wget http://cn2.php.net/distributions/php-5.6.32.tar.bz2 --2018-07-19 23:55:09-- http://cn2.php.net/distributions/php-...

2018-07-31 23:45:00 226

转载 学习linux第四十天

安装mariadb [root@hanlinxy src]# cd src [root@hanlinxy src]# wgethttps://downloads.mariadb.com/MariaDB/mariadb-10.2.6/bintar-linux-glibc_214-x86...

2018-07-30 22:47:00 67

转载 学习linux第三十九天

安装mysql [root@hanlinxy ~]#uname -a Linux hanlinxy 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux [root...

2018-07-28 00:03:00 84

转载 学习linux第三十八天

[root@hanlin2 /]# vim /etc/rsyncd.conf (rsync默认的配置文件) port=873 (指定端口号) log file=/var/log/rsync.log pid file=/var/run/rsyncd.pid address=192.168....

2018-07-19 19:09:00 184

转载 学习linux第三十七天

rsync [root@hanlinxy tmp]#rsync -av /etc/passwd /tmp/xy.txt (本地增量复制) sending incremental file list passwd sent 2209 bytes received 31 bytes ...

2018-07-18 22:30:00 119

转载 学习linux第三十六天

cron root@hanlinxy ~]#cat /etc/crontab(crontab的配置文件) SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root # For details see man 4 cro...

2018-07-17 21:22:00 194

转载 学习linux第三十五天

iptables保存备份和还原 [root@hanlin ~]# service iptables save (保存规则到下面的路径) iptables: Saving firewall rules to /etc/sysconfig/iptables:[ 确定 ] [root@ha...

2018-07-16 23:27:00 42

转载 学习linux第三十五天

iptables保存备份和还原 [root@hanlin ~]# service iptables save (保存规则到下面的路径) iptables: Saving firewall rules to /etc/sysconfig/iptables:[ 确定 ] [root@ha...

2018-07-16 23:27:00 44

转载 学习linux第三十四天

iptables小案例 [root@hanlin ~]#vim /usr/local/sbin/iptables.sh#! /bin/bash ipt="/usr/sbin/iptables" $ipt -F $ipt -P INPUT DROP $ipt -P OUTPUT ACCE...

2018-07-13 23:50:00 138

转载 学习linux第三十三天

网络相关知识 [root@hanlin ~]#yum install -y net-tools [root@hanlin ~]#ifconfig (查看网卡信息) ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1...

2018-07-12 20:03:00 137

转载 学习linux第三十二天

iostat [root@hanlin /]#yum install -y sysstat.x86_64 (装软件安装包,包含iostat和sar) [root@hanlin /]#iostat(查看cpu负载和磁盘读写) Linux 3.10.0-693.el7.x86_64 ...

2018-07-12 07:59:00 70

转载 学习linux第三十一天

iostat [root@hanlin /]#yum install -y sysstat.x86_64 (装软件安装包,包含iostat和sar) [root@hanlin /]#iostat(查看cpu负载和磁盘读写) Linux 3.10.0-693.el7.x86_64 ...

2018-07-10 22:04:00 82

转载 学习linux第三十天

w 查看负载 [root@hanlin ~]#w 10:10:29(时间)0 up 10 days, 45 min(开机时间), 3 users, load average: 0.00, 0.01, 0.05 USER TTY FROMLOGIN@(登入时间) ...

2018-07-09 22:24:00 71

转载 学习linux第二十九天

awk [root@hanlin /]#mkdir awk [root@hanlin /]#cd /awk [root@hanlin awk]#ls [root@hanlin awk]#cp /etc/passwd ./ [root@hanlin awk]#ls passwd [...

2018-07-05 20:48:00 93

转载 学习linux第二十八天

sed  [root@hanlin ~]#sed -n '/root/'p /etc/passwd.bak(过滤出passwd.bak中含有root的行,-n表示) -n或--quiet或——silent:仅显示script处理后的结果 root:x:0:0:root:/ro...

2018-07-04 20:56:00 106

转载 学习linux第二十七天

正则 grep 过滤 [root@hanlin grep]#grep -n 'x' passwd (过滤出passwd里面含有x的行,并且标出行号,-n --line-number ) 1:root:x:0:0:root:/root:/bin/bash 2:bin:x:1:1:b...

2018-07-03 19:34:00 116

转载 学习linux第二十六天

cut [root@hanlin ~]$cat /etc/passwd |head -n 2 |cut -d ":" -f 1-3 (cut分割,-d指定分割符号。-f 指定截取哪几列) root:x:0 bin:x:1 sort [root@hanlin lvm]#sort ...

2018-07-02 21:22:00 183

转载 学习linux第二十五天

管道符 把前面命令的结果输出给后面执行 [root@hanlin lvm]#cat 1.txt 22222\33333 22222;\33333 222333444444 [root@hanlin lvm]#cat 1.txt |grep '3' (把cat 1.txt的结果中的包...

2018-06-30 01:30:00 139

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除