yangzailu

导航

2019年8月22日 #

linux网络配置

摘要: eth0 -- 指的是不同的网卡(网络连接)eth1eth2eth3lo --本地回环,127.0.0.1;请求走到网卡,直接回来localhost 当前计算机,内存内部的socket的连接如果以上没有看到eth0,说明默认的配置没有开启,可以通过修改配置文件完成/etc/sysconfig/net 阅读全文

posted @ 2019-08-22 16:12 飞离地平线 阅读(288) 评论(0) 推荐(0) 编辑

crontab 定时任务简单备份数据库

摘要: 备份数据库/usr/local/mysql5.5/bin/mysqldump -uroot -p1234abcd wordpress >~/wordpress_20151206.sql59 23 * * * /usr/local/mysql5.5/bin/mysqldump -uroot -p123 阅读全文

posted @ 2019-08-22 14:48 飞离地平线 阅读(790) 评论(0) 推荐(0) 编辑

linux进程管理

摘要: 1.进程管理 psps --help 打印当前的进程信息ps -a 打印所有进程信息ps -e 打印所有进程信息 用的最多ps -eu 打印所有进程信息(更便捷的显示方式)2.需要在进程中挑出我们需要管理的进程ps -e | grep mysqld3.kill进程典型需要kill关闭进程kill:向 阅读全文

posted @ 2019-08-22 14:13 飞离地平线 阅读(241) 评论(0) 推荐(0) 编辑

linux 管道,输出重定向,后端执行

摘要: 1. | (管道) $time|data:"Y-m-d"将前部的输出,作为后部的输入:配合管道使用的命令,典型的就是grep,morefind --help | grep cnewer./configer -help |grep apxs 2.more的典型使用 ./configer -help | 阅读全文

posted @ 2019-08-22 11:30 飞离地平线 阅读(484) 评论(0) 推荐(0) 编辑

find 和grep的区别

摘要: find(以文件属性为查找条件)grep(以文件内容为查找条件)grep works /usr/local/apache/htdocs/index.html 1.将/etc/passwd,有出现 root 的行取出来 # grep root /etc/passwd root:x:0:0:root:/ 阅读全文

posted @ 2019-08-22 11:06 飞离地平线 阅读(905) 评论(0) 推荐(0) 编辑

linux启动脚本

摘要: 1. linux启动脚本 : /etc/init.d/脚本例如:/etc/init.d/iptables startinit.d/ 下面的每一个文件就是一个启动脚本 2. 以上的/etc/init.d/脚本,可以简化为:service脚本 start|stop|restart 上面的每个(快捷方式) 阅读全文

posted @ 2019-08-22 10:38 飞离地平线 阅读(962) 评论(0) 推荐(0) 编辑

linux启动介绍

摘要: 1. linux内核3.0之前,使用init(初始化 )进程管理的启动程序。一旦升级到3.0(centos7)使用systemd的方式进行管理。2. 启动模式:启动后执行哪些典型的操作。vi/etc/inittab 文件 3.各种模式介绍 阅读全文

posted @ 2019-08-22 10:02 飞离地平线 阅读(241) 评论(0) 推荐(0) 编辑