随笔分类 -  Linux

linux
摘要:1.apr和apr-util,下载地址: http://apr.apache.org/download.cgi 出现以下错误 2. 下载安装pcre【如果以及yum安装则跳过此步】 3.安装apache 4.你会发现apache stop|restart|start都不成功 解决办法 5.将apac 阅读全文
posted @ 2018-01-15 12:00 Adtuu 阅读(193) 评论(0) 推荐(0)
摘要:安装vsftpd 1、以管理员(root)身份执行以下命令 yum install vsftpd 2、设置开机启动vsftpd ftp服务 chkconfig vsftpd on 3、启动vsftpd服务 service vsftpd start 管理vsftpd相关命令: 停止vsftpd: service vsftpd stop 重启vsftpd: service vsftp... 阅读全文
posted @ 2017-12-06 17:50 Adtuu 阅读(185) 评论(0) 推荐(0)
摘要:一、安装Nginx最新版 首先查看是否有安装源包 yum list nginx (或yum info nginx) 如果没有则 添加好源后继续安装 未完待续。。。 阅读全文
posted @ 2016-08-18 17:54 Adtuu 阅读(197) 评论(0) 推荐(0)
摘要:一、vsftp安装篇 # 安装vsftpd yum -y install vsftpd # 启动 service vsftpd start # 开启启动 chkconfig vsftpd on # 如果启动失败那么查看端口占用情况 netstat -natp |grep 21 #显示的是被pure-f... 阅读全文
posted @ 2016-06-13 12:07 Adtuu 阅读(160) 评论(0) 推荐(0)
摘要:centos下安装php环境 安装apache yum install httpd-devel 启动apache /etc/init.d/httpd start 安装mysql yum install mysql mysql-server 启动mysql /etc/init.d/mysqld sta 阅读全文
posted @ 2016-02-24 16:17 Adtuu 阅读(378) 评论(0) 推荐(0)
摘要:第一种方法: 1.创建脚本文件 cat phplog.sh 2.编辑脚本内容 #!/bin/bash while : ;do /home/scripts.sh 2>/dev/null & sleep 1 done 注意:第一次运行时请不要使用bash phplog.sh & 这种后台运行的方式,它会 阅读全文
posted @ 2016-02-24 16:11 Adtuu 阅读(7864) 评论(0) 推荐(0)
摘要:http://files.cnblogs.com/files/adtuu/no-debug-non-zts-20121212.zip/Applications/XAMPP/xamppfiles/lib/php/extensions 阅读全文
posted @ 2015-10-18 18:57 Adtuu 阅读(181) 评论(0) 推荐(0)
摘要:安装php_redis.so首先用git从https://github.com/nicolasff/phpredis下载源码。然后依次执行以下命令sudo /Applications/XAMPP/xamppfiles/bin/phpizesudo MACOSX_DEPLOYMENT_TARGET=1... 阅读全文
posted @ 2015-08-31 16:49 Adtuu 阅读(145) 评论(0) 推荐(0)
摘要:1、wget http://blog.s135.com/soft/linux/nginx_php/memcache/memcache-2.2.5.tgz2、tar zxvf memcache-2.2.5.tgz3、cd memcache-2.2.54、/Applications/XAMPP/xamp... 阅读全文
posted @ 2015-08-31 16:48 Adtuu 阅读(263) 评论(0) 推荐(0)
摘要:我们有时候需要一些检查MySQL是否宕机,如果宕机了应自动重新启动应用并通知运维人员!此脚本用来简单的实现MySQL宕机后自动重启并邮件通知运维,此为SHELL脚本,当然也有一些朋友喜欢用Python之类的实现,其原理是一样的!这儿主要用到的是命令是mysqladmin ping#!/bin/bas... 阅读全文
posted @ 2015-08-28 15:36 Adtuu 阅读(394) 评论(0) 推荐(0)
摘要:Now you need to find out what version of PHP is installed on OSX$ php -vPHP 5.3.10 with Suhosin-Patch (cli) (built: Feb 20 2012 22:55:53) Copyright (c... 阅读全文
posted @ 2015-07-30 09:19 Adtuu 阅读(3282) 评论(0) 推荐(0)
摘要:libevent扩展安装libevent-2.0.16-stable.tarhttp://libevent.org/[plain]view plaincopycdlibevent-2.0.16-stable./configuremakemakeinstall下载php-libeventc 扩展ht... 阅读全文
posted @ 2015-07-30 09:18 Adtuu 阅读(117) 评论(0) 推荐(0)
摘要:The manual way1. Clone the repository:git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh2.Optionally, backup your existing~/.zshrcfile... 阅读全文
posted @ 2015-07-30 09:17 Adtuu 阅读(660) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-07-30 09:04 Adtuu 阅读(75) 评论(0) 推荐(0)
摘要:第一种方法:当然首先想到的是写一个触发的脚本,在触发脚本中使用死循环来解决此问题,如下:cat kick.sh#!/bin/bashwhile : ;do/home/somedir/scripts.sh 2>/dev/null &sleep 3done注意第一次运行时不要使用 bash kick.s... 阅读全文
posted @ 2015-07-29 09:39 Adtuu 阅读(4448) 评论(0) 推荐(0)
摘要:#!/bin/shdir_path="/vol/project/log/test/"for year in {2012..2013}do #echo "$year" cd $dir_path mkdir $year for month in {1..12} do ... 阅读全文
posted @ 2015-07-24 16:50 Adtuu 阅读(1260) 评论(0) 推荐(0)
摘要:一、下载远程文件到本地scp -i /Users/user/ssh/id_rsa root@192.168.1.8:/root/talk_server_redis/dump.rdb /Users/kba/dev_dump0710.rdb二、将本地文件上传到远程服务器scp -i /Users/use... 阅读全文
posted @ 2015-07-23 14:44 Adtuu 阅读(209) 评论(0) 推荐(0)
摘要:>vi test.log>gg #光标移到第一行>:.,$d 阅读全文
posted @ 2015-07-23 13:52 Adtuu 阅读(825) 评论(0) 推荐(0)
摘要:第一步:安装nodegit clonehttps://github.com/joyent/node.gitcd nodegit checkout v0.10.33-release./configuremakemake install第二步:安装npm mac下使用命令ruby -e "$(curl... 阅读全文
posted @ 2015-07-23 13:34 Adtuu 阅读(592) 评论(0) 推荐(0)