随笔分类 - linux
摘要:php语音转换需要安装ffmpeg文件参考地址:http://thierry-xing.iteye.com/blog/2017864http://diogomelo.net/blog/11/encoder-codec-id-86017-not-found-output-stream-00-compi...
阅读全文
摘要:linux crontab 命令,最小的执行时间是一分钟。如需要在小于一分钟内重复执行,可以有两个方法实现。1.使用延时来实现每N秒执行创建一个php做执行动作,非常简单,就是把当前时间写入log。crontab -e 输入以下语句,然后:wq保存退出。* * * * * php /home/fdi...
阅读全文
摘要:Redisserverwentaway出现的问题如下:1.看redis服务是否启动,包括端口2.看是否是服务器端的防火墙引起的,iptables和selinux3.看是否是redis.conf文件中绑定IP引起的,屏蔽bind 127.0.0.1这一项
阅读全文
摘要:1.安装redisyum install redis2.安装php-redis扩展yuminstallphp-redis3.启动redis,并设定开机自动启动service redis startchkconfig redis on
阅读全文
摘要:一、配置文件详解在RHEL或者CentOS等Redhat系的Linux系统里,跟网络有关的主要设置文件如下:/etc/host.conf 配置域名服务客户端的控制文件/etc/hosts 完成主机名映射为IP地址的功能/etc/resolv.conf 域名服务客户端的配置文件,用于指定域...
阅读全文
摘要:步骤1、配置/etc/sysconfig/network-scripts/ifcfg-eth0 里的文件。it动力的CentOS下的ifcfg-eth0的配置详情:[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0DEV...
阅读全文
摘要:vmlite虚拟机启动出错,就把这个虚拟机删除掉重新建立,系统虚拟硬盘使用之前的,启动系统后不能上网,通过ifconfig查看网卡没启动,遂启动网卡服务,但是出错,就是:device eth0 does not seem to be present, delaying initialization,...
阅读全文
摘要:更新pecl扩展yum install epel-release //扩展包更新包yum update//更新yum源
阅读全文
摘要:在CentOS 6.x 的系统中,是集成xdebug 的,yum install php-pecl-xdebug如果是CentOS.5 也可能通过安装安装 epel 来安装rpm -ivhhttp://dl.fedoraproject.org/pub/epel/5/x86_64/epel-relea...
阅读全文
摘要:错误描述:#yum install libmcrypt libmcrypt-devel mcrypt mhashSetting up Install ProcessNo package php-mcrypt available.Error: Nothing to do我们会看到centos yum从...
阅读全文
摘要:服务器配置命令开始(蓝色为输入命令,灰色为反馈内容):Yum updateReboot;yum -y install mysql mysql-server mysql-devel php php-devel php-commonphp-gd php-curl php-prec php-xml php...
阅读全文
摘要:ServerAdmin m.koobird.com DocumentRoot "/var/www/html/xinyou" ServerName m.romy.com ErrorLog "logs/romy-m.koobird.com-error.log" CustomLog "logs/romy...
阅读全文
摘要:ttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName解决办法非常简单:#vim /web/apache/conf/httpd.conf (...
阅读全文
摘要:1.在线安装mod_sslyum -y install mod_ssl查看openssl是否安装成功rpm -qa |grep openssl2.建立服务器密钥openssl genrsa -out server.key 10243.建立服务器公钥openssl req -new -key serv...
阅读全文
摘要:在使用CentOS系统的时候,我们可能会遇到时间不准的问题,那我们如何解决这个我问题呢,下面就来教大家一个CentOS系统时间同步的方法,希望大家可以解决自己所存在的疑问。CentOS系统时间同步的步骤如下:新装的CentOS系统服务器可能设置了错误的,需要调整时区并调整时间.如下是CentOS系统...
阅读全文
摘要:1.将windows目录共享2.安装cifs3.mount-tcifs-ousername=电脑登陆用户名,password=电脑登陆用户密码 //127.0.0.1/abc /var/www/html/abc没有权限的话,可以查看apache权限,要先新建abcmount -t cifs -o u...
阅读全文
摘要:Linux 通过cron定期执行 php文件补充几点:1. 要在php文件头加上解释器的路径,通常是 #!/usr/bin/php2. 授予要执行的php文件执行权限 chmod a+x xx.php3. vi cronfile输入: 0 * * * * 绝对路径/xx.php > /dev/nul...
阅读全文
摘要:今有一小型项目,完全自主弄,原来以为很简单的NTP服务,我给折腾了2个多小时才整撑头(以前都是运维搞,没太注意,所以这技术的东西,在简单都需要亲尝啊),这里记录为以后别再浪费时间。 目标环境,5台linux centos 6.3, 一台作为NTPD服务与外部公共NTP服务同步时间,同时作为内网的NT...
阅读全文
摘要:在我们使用CentOS系统的时候,也许时区经常会出现问题,有时候改完之后还是会出错,下面我们就来学习一种方法来改变这个状况。如果没有安装,而你使用的是 CentOS系统 那使用命令 yum install ntp然后:ntpdate us.pool.ntp.org 。因为CentOS系统是用rhas...
阅读全文
摘要:Sphinx--强大的开源全文检索引擎,Coreseek--免费开源的中文全文检索引擎软件版本:coreseek-4.1mmseg-3.2.14autoconf-2.64老版本的coreseek-3.2和mmseg-3.2.13安装过程一样。一、安装前准备编译环境1.1yum安装编译环境和mysql...
阅读全文