随笔分类 -  linux

关于linux 环境/命令/软件等
Linux杂碎2/SHELL
摘要:man hier 描述文件系统目录结构dmesg 检测到的 硬件和启动信息cat /proc/devices 当前配备的设备sysctl -a 显示所有系统限制 make(){ echo make4 return 4 } show(){ echo show1 return 1 } make echo 阅读全文

posted @ 2017-10-25 23:34 思此狂 阅读(176) 评论(0) 推荐(0) 编辑

OS
摘要:关于make 利用 configure 所产生的Makefile 文件有几个预先设定的目标可使用。 make all 产生预设的目标,只敲入 make 也可以 make clean 清楚编译结果 make distclean 除了清除编译结果,也把configure所产生的Makefile清除掉 m 阅读全文

posted @ 2017-10-21 15:26 思此狂 阅读(99) 评论(0) 推荐(0) 编辑

Linux sudoers
摘要:普通用户执行 sudo 以root用户身份来执行命令。 将普通用户加入sudoers组 在 root ALL=(ALL) ALL下添加username ALL=(ALL) ALL sudo 不想输入密码 %wheel ALL=(ALL) NOPASSWD: ALL 注释这个。 gpasswd -a 阅读全文

posted @ 2017-10-20 14:39 思此狂 阅读(200) 评论(0) 推荐(0) 编辑

Linux 工具集
摘要:1 fping (批量ping工具) http://www.fping.org/ (configure&&make&&make install) 2 rpm包集合站 http://www.rpmfind.net/ 3 hping 安装依赖(yum -y install libpcap-devel) 阅读全文

posted @ 2017-09-17 09:32 思此狂 阅读(126) 评论(0) 推荐(0) 编辑

自动化运维工具 SaltStack
摘要:SaltStack 允许主机对多个服务器& 操作系统实现统一的管理和配置 SaltStack 是一种基于 C/S 架构的服务器基础架构集中化管理平台,管理端称为 Master,客户端称为 Minion。SaltStack 具备配置管理、远程执行、 监控等功能,一般可以理解为是简化版的 Puppet 阅读全文

posted @ 2017-08-16 17:08 思此狂 阅读(166) 评论(0) 推荐(0) 编辑

inotifywait 目录或文件的监控
摘要:当目录或者文件有变化的时候执行 相应操作 src=/home/wwwroot/sssm/Api/upload inotifywait -mrq --timefmt '%d/%m/%y %H:%M' --format '%T %w%f' -e close_write,delete,create,att 阅读全文

posted @ 2017-08-07 10:16 思此狂 阅读(233) 评论(0) 推荐(0) 编辑

postfix/dovecot邮件服务器
摘要:安装配置参考链接 http://www.cnblogs.com/hgj123/p/6186400.html 关于POP协议,SMTP协议,IMAP协议的一些介绍请参考http://help.163.com/09/1223/14/5R7P6CJ600753VB8.html 一个邮件服务器 的搭建 一些 阅读全文

posted @ 2017-08-03 15:39 思此狂 阅读(547) 评论(0) 推荐(0) 编辑

Git 命令及git服务器
摘要:Linux 服务器上安装git yum -y install git git config --global user.name "name" git config --global user.email "email" globa 参数表示这台机器上所有仓库都会使用这个配置,当然也可以对指定仓库使 阅读全文

posted @ 2017-07-31 10:03 思此狂 阅读(235) 评论(0) 推荐(0) 编辑

XHProf分析PHP性能
摘要:XHProf 扩展安装 git clone https://github.com/longxinH/xhprof cd /xhprof/extension phpize && ./configure --with-php-config=/usr/local/php/bin/php-config ma 阅读全文

posted @ 2017-07-03 01:29 思此狂 阅读(117) 评论(0) 推荐(0) 编辑

php中yaf框架的服务器配置
摘要:1 yaf 扩展 wget http://pecl.php.net/get/yaf-3.0.4.tgz /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make && make 阅读全文

posted @ 2017-06-19 15:25 思此狂 阅读(349) 评论(0) 推荐(0) 编辑

一个init脚本例子
摘要:主要判断进程关闭的方式 阅读全文

posted @ 2017-06-11 19:58 思此狂 阅读(570) 评论(0) 推荐(0) 编辑

nginx access denied
摘要:目录权限有都 777 own 是 php user 页面刷新时候 一会可以 一会报 access denied (执行文件扩展限制) 修改 security.limit_extensions = .php .php3 .php4 .php5 .php7 改为 security.limit_exten 阅读全文

posted @ 2017-06-06 14:37 思此狂 阅读(2604) 评论(0) 推荐(0) 编辑

php-memcached
摘要:memcached 服务的安装及php-memcached的扩展详见脚本。 安装及启动 yum install libevent libevent-deve memcached -y memcached -d -u root -m 1024M -p 11211 文档 http://www.php.n 阅读全文

posted @ 2017-06-01 16:25 思此狂 阅读(117) 评论(0) 推荐(0) 编辑

Linux服务器拒绝密码
摘要:1: IP是通的 2 : 22端口是通的 3 :密码是对的,没有改过 最后查明导致的原因(在查看/etc/passwd 的时候不小心把 第一行的 root 的 r 给删掉了) 阅读全文

posted @ 2017-05-16 10:21 思此狂 阅读(1785) 评论(0) 推荐(0) 编辑

iptables&firewall
摘要:centos 7 下 防火墙 centos7下默认使用 firewall 作为防火墙。使用iptables必须重新设置。 1直接关闭防火墙 systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service 阅读全文

posted @ 2017-05-12 14:14 思此狂 阅读(194) 评论(0) 推荐(0) 编辑

ffmpeg-php扩展
摘要:php视频缩略图,较常用的是ffmpeg-php 1: 安装 ffmpeg ffmpeg的下载链接 http://ffmpeg.org/download.html 解压安装包 tar -jxvf ffmpeg-x.x.tar.bz2 进入目录 cd ffmpeg-x.x 编译安装 ./configu 阅读全文

posted @ 2017-04-20 10:41 思此狂 阅读(19936) 评论(0) 推荐(0) 编辑

NFS文件共享同步
摘要:yum -y install nfs-utils rpcbind (rpc是在nfs共享是负责通知客户端) 192.168.10.150(客户端) 192.168.10.155(服务端,155将自己的硬盘共享给150) 【以下是服务端】 NFS配置 vim /etc/exports /opt/nfs 阅读全文

posted @ 2017-04-08 17:41 思此狂 阅读(642) 评论(0) 推荐(0) 编辑

rsync+sersync自动同步
摘要:参考:http://www.cnblogs.com/itech/archive/2009/08/10/1542945.html yum -y install rsync 配置文件 vim /etc/rsyncd.conf # /etc/rsyncd: configuration file for r 阅读全文

posted @ 2017-04-06 23:50 思此狂 阅读(357) 评论(0) 推荐(0) 编辑

linux 杂碎1
摘要:查看某进程名 的 进程号 pidof name top 命令 查看指定进程 top -p pid sed -i(直接修改文件,不在命令行输出) sed -e 只在命令行输出,不修改文件 sed -i 's/zhangsan/lisi/g' *.txt find . -name \*.txt |xar 阅读全文

posted @ 2017-04-05 09:50 思此狂 阅读(247) 评论(0) 推荐(0) 编辑

进程管理工具supervisor
摘要:yum -y install supervisor vim /etc/supervisord.conf [include]files = supervisord.d/*.conf vim redmine.conf [program:redmine]command=rails sdirectory=/ 阅读全文

posted @ 2017-04-04 23:28 思此狂 阅读(217) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示