随笔分类 -  linux

Ubuntu安装sysv-rc-conf配置开机启动服务
摘要:ubuntu下chkconfig的替代方案: 第一步:在终端键入sudo apt-get install sysv-rc-conf安装sysv-rc-conf服务。 第二步:检查设置系统开机自启动服务:sudo sysv-rc-conf。 image.png 小提示:在sudo sysv-rc-co 阅读全文

posted @ 2018-11-11 11:49 dongruiha 阅读(4001) 评论(0) 推荐(0) 编辑

Linux中添加新硬盘后对硬盘的分区以及挂载
摘要:转自:https://www.linuxidc.com/Linux/2018-06/152958.htm 我将使用VM来进行模拟先使用df看下我的电脑硬盘信息:df -h可以看到只有一个sda1分区装载/boot,还有一个扩展分区查看dev下的硬盘:只有一个硬盘(两个分区)注意: 如果你是IDE 接 阅读全文

posted @ 2018-11-11 11:13 dongruiha 阅读(1180) 评论(0) 推荐(0) 编辑

用shell脚本监控进程是否存在 不存在则启动的实例
摘要:用shell脚本监控进程是否存在 不存在则启动的实例: #!/bin/shps -fe|grep processString |grep -v grepif [ $? -ne 0 ]thenecho "start process....." nohup php yii test/action & e 阅读全文

posted @ 2018-10-31 08:27 dongruiha 阅读(147) 评论(0) 推荐(0) 编辑

centos配置/etc/mail.rc发邮件
摘要:安装mailx: yum install mailx vi /etc/mail.rc set from=524755798@qq.comset smtp="smtps://smtp.qq.com:465"set smtp-auth-user=524755798set smtp-auth-passwo 阅读全文

posted @ 2018-04-12 12:49 dongruiha 阅读(5725) 评论(0) 推荐(0) 编辑

CentOS7 配置sendmial + PHP mail函数发送邮件
摘要:https://blog.csdn.net/jiabangok/article/details/51840556 阅读全文

posted @ 2018-04-12 10:02 dongruiha 阅读(326) 评论(0) 推荐(0) 编辑

如何使用Xshell秘钥认证登录CentOS(无密码登录)
摘要:https://www.linuxidc.com/Linux/2016-06/132268.htm 阅读全文

posted @ 2018-04-11 09:46 dongruiha 阅读(175) 评论(0) 推荐(0) 编辑

再说TCP神奇的40ms
摘要:https://www.cnblogs.com/purpleraintear/p/6051475.html 阅读全文

posted @ 2018-04-11 09:18 dongruiha 阅读(180) 评论(0) 推荐(0) 编辑

curl命令测试网络请求中DNS解析、响应时间
摘要:https://blog.csdn.net/dreamer2020/article/details/78152576 阅读全文

posted @ 2018-04-03 20:17 dongruiha 阅读(2034) 评论(0) 推荐(0) 编辑

Connection reset by peer引发的思考
摘要:http://www.mamicode.com/info-detail-506381.html 阅读全文

posted @ 2018-03-26 12:00 dongruiha 阅读(130) 评论(0) 推荐(0) 编辑

php mkdir没有权限不能创建成功的问题
摘要:php用mkdir创建目录时,必须保证要创建的目录的父级目录有用户权限才行, 比如当前执行脚本的用户是www用户,要创建的目录是/data/www/bbs/attach/2018 则/data/www/bbs/attach/目录必须是www www属主属组,如果是root root 则不会创建成功。 阅读全文

posted @ 2018-03-20 17:03 dongruiha 阅读(858) 评论(0) 推荐(0) 编辑

ELASTICSEARCH健康red的解决
摘要:http://blog.csdn.net/loveyaqin1990/article/details/77678108 阅读全文

posted @ 2018-03-05 19:43 dongruiha 阅读(188) 评论(0) 推荐(0) 编辑

使用linux远程登录另一台linux
摘要:可以用ssh命令行方式登录。对方需要开启ssh服务。ssh [-l login_name] [-p port] [user@]hostname例如,使用root用户登录 192.168.0.1ssh -l root 192.168.0.1如果:该服务器的ssh端口不是默认的22端口,需要指定登录端口 阅读全文

posted @ 2018-03-02 17:09 dongruiha 阅读(441) 评论(0) 推荐(0) 编辑

CentOS安装PHP7+Nginx+MySQL
摘要:https://www.cnblogs.com/52fhy/p/5797981.html 阅读全文

posted @ 2018-02-14 19:39 dongruiha 阅读(84) 评论(0) 推荐(0) 编辑

top显示命令详解+top命令使用
摘要:http://blog.csdn.net/u014226549/article/details/22041289 阅读全文

posted @ 2018-02-07 12:07 dongruiha 阅读(201) 评论(0) 推荐(0) 编辑

动态PHP电商网站伪静态的 Nginx反向代理Cache缓存终极设置
摘要:转自: http://www.ttlsa.com/nginx/dynamic-php-nginx-cache/ 阅读全文

posted @ 2017-12-29 08:32 dongruiha 阅读(161) 评论(0) 推荐(0) 编辑

TIME_WAIT详解
摘要:https://huoding.com/2013/12/31/316 阅读全文

posted @ 2017-12-15 11:44 dongruiha 阅读(123) 评论(0) 推荐(0) 编辑

linux计划任务以某个用户身份执行
摘要:# Example of job definition: # . minute (0 - 59) # | . hour (0 - 23) # | | . day of month (1 - 31) # | | | . month (1 - 12) OR jan,feb,mar,apr ... # | 阅读全文

posted @ 2017-12-06 09:04 dongruiha 阅读(3033) 评论(0) 推荐(0) 编辑

AF_INET域与AF_UNIX域socket通信原理对比
摘要:转自 http://blog.csdn.net/sandware/article/details/40923491 1. AF_INET域socket通信过程 典型的TCP/IP四层模型的通信过程。 发送方、接收方依赖IP:Port来标识,即将本地的socket绑定到对应的IP端口上,发送数据时,指 阅读全文

posted @ 2017-10-10 12:39 dongruiha 阅读(686) 评论(0) 推荐(0) 编辑

linux操作备份
摘要:杀掉匹配到hello的所有进程,使用下面这个命令就能直接实现。 ps -ef |grep hello |awk '{print $2}'|xargs kill -9 mysqlbinlog日志导到文件查看,要先导入到文件,否则的话就是直接恢复了 mysqlbinlog --start-datetim 阅读全文

posted @ 2017-09-27 09:55 dongruiha 阅读(225) 评论(0) 推荐(0) 编辑

查看进程的命令ps
摘要:查看进程的命令:ps aux strace -p pid(进程id) 杀死进程:kill pid(进程id)强制杀死进程:kill -9 pid(进程id) linux ps 命令查看进程状态linux上进程有5种状态: 1. 运行(正在运行或在运行队列中等待) 2. 中断(休眠中, 受阻, 在等待 阅读全文

posted @ 2017-09-27 09:50 dongruiha 阅读(402) 评论(0) 推荐(0) 编辑

导航