ITeye博客

xxi life

xxi · 共 30 篇文章

LNMP 安装php环境

1. 安装LNMP //防止安装中断 yum install screen screen -S lnmp //中断可使用恢复 screen -r lnmp //安装lnmp wget http://soft.vpser.net/lnmp/lnmp1.7.tar.gz -cO lnmp1.7.tar.gz && tar zxf lnmp1.7.tar.gz && cd lnmp1.7 && ./install.sh lnmp //选择mysql 5.6或5.7需要1G以上内存才可安装, 一般选5.7 设置mysql密码 选择php版本 7.1即可 内存优化: 3 不优化 安装完成 2 安装扩展…

2021-02-25 13:16 · 评论(0)

PHP浮点数运算错误问题

BCMath 任意精度数学 bcadd — 2个任意精度数字的加法计算 bccomp — 比较两个任意精度的数字 bcdiv — 2个任意精度的数字除法计算 bcmod — 对一个任意精度数字取模 bcmul — 2个任意精度数字乘法计算 bcpow — 任意精度数字的乘方 bcpowmod — Raise an arbitrary precision number to another, reduced by a specified modulus bcscale — 设置所有bc数学函数的默认小数点保留位数 bcsqrt — 任意精度数字的二次方根 bcsub — 2个任意精度数字的减法

2019-04-07 21:21 · PHP · 评论(0)

Linux 服务器带宽跑满检测

1、服务器内部安装 iftop 流量监控工具: yum install iftop -y 2、.服务器外网带宽被占满时,如果通过远程无法登陆,可通过阿里云终端管理进入到服务器内部,运行下面命令查看流量占用情况: iftop -i eth1 -P

2017-06-07 09:47 · 评论(0) · Linux

nginx try_files

try_files $uri $uri/ /index.php?s=$uri&$args; 适用于 路由入口唯一框架

2017-05-26 19:25 · 评论(0)

centOS yum Loaded plugins: fastestmirror错误

yum下载更新 阿里云报错: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile 原因是默认需要选择最快源, 但是被墙了. 访问不了 禁用fastestmirror可 yum --disableplugin=fastestmirror update vi /etc/yum/pluginconf.d/fastestmirror.conf enabled=1改成0

2017-02-06 08:49 · 评论(0)

php 5.6环境, 自己用

安装步骤: 1.使用putty或类似的SSH工具登陆VPS或服务器; 添加dns参数,防止默认装机没有dns导致安装失败 1 echo "nameserver 114.114.114.114" >> /etc/resolv.conf yum-fastestmirror,自动选择最快的yum源,可以加快安装进度。 #centos5\centos6: 1 yum -y install yum-fastestmirror #centos4: 1 yum -y install yum-plugin-fastestmirror 为了防止安装过程中中断,可以先安装screen,同时安装下载工具wget …

2016-12-20 18:27 · 评论(0)

git使用

//Git fatal: write error: Broken pipe git config http.postBuffer 104857600 //忽略上传文件夹.idea/ //根目录新建.gitignore 文件 echo .idea/ > .gitignore //删除git缓存 git rm -r --cached . //再次提交即可 git add . git commit

2016-04-14 21:35 · 评论(0) · Git

php安装最新扩展runkit

不知道为什么php官方指示runkit github下载后一直安装不上 后来在github上又找了一个: https://github.com/php/pecl-php-runkit 好像最新的 注意不能在 releases 中下载,否则不是最新的 需要git下载最新的: (否则不行) git clone https://github.com/php/pecl-php-runkit.git cd pecl-php-runkit phpzie ./configure make make install //即可

2015-04-13 15:09 · 评论(0) · Git · PHP

安装php5.6

系统环境: CentOS 6.5 / 7.0 x86_64 Fedora 20 x86_64 下载 PHP 源码包 # wget http://cn2.php.net/distributions/php-5.6.0.tar.xz# xz -d php-5.6.0.tar.xz# tar xf php-5.6.0.tar -C /usr/local/src/ 添加 epel 源 # rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 安装依赖 # yum install gcc b…

2015-02-15 00:08 · PHP · 评论(0)

Adobe dreamweaver cs6 代码颜色配色方案

[code="java"] //Colors.xml路径, 注意2个都需要替换 F:\Program Files\Adobe\Adobe Dreamweaver CS6\Adobe Dreamweaver CS6\configuration\CodeColoring\Colors.xml C:\Users\vincent\AppData\Roaming\Adobe\Dreamweaver CS6\zh_CN\Configuration\CodeColoring\Colors.xml [/code] [code="php"] [/code]

2014-12-03 00:46 · PHP · 评论(0) · Adobe · Dreamweaver

WDCP 安装 最新mcached

先安装sasl yum install cyrus-sasl-plain cyrus-sasl cyrus-sasl-devel cyrus-sasl-lib yum install gcc+ gcc-c++ #先安装libmemcached wget https://launchpad.net/libmemcached/1.0/1.0.18/+download/libmemcached-1.0.18.tar.gz tar zxvf libmemcached-1.0.18.tar.gz cd libmemcached-1.0.18 ./configure --prefix=/usr/loca…

2014-10-28 22:00 · PHP · 评论(0) · PHP

WDCP 安装XCache 最新版本3.2.0

#下载 wget http://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz #解压 tar -zxvf xcache-3.2.0.tar.gz cd xcache-3.2.0 /www/wdlinux/php/bin/phpize ./configure -with-php-config=/www/wdlinux/php/bin/php-config -enable-xcache -enable-xcache-coverager -enable-inline-optimization -disable-debug ma…

2014-10-28 21:25 · PHP · 评论(0)

WDCP 升级到php5.4

下载附件中内容 如果内存小于或等于512M, 需要修改文件 vi php_up54.sh 按i 进入编辑模式 找到--disable-rpath字段 修改为:--disable-fileinfo 有2处需要改 按ESC, 退出编辑模式 输入 :wq [回车] sh php_up54.sh 等待编译完成.即可

2014-10-28 21:04 · PHP · 评论(0) · PHP

CentOS 安装FTP

vsftpd 作为FTP服务器,在 Linux 系统中是非常常用的。下面我们介绍如何在 centos 系统上安装vsftp。 什么是vsftpd vsftpd是一款在Linux发行版中最受推崇的FTP服务器程序。特点是小巧轻快,安全易用。 vsftpd 的名字代表”very secure FTP daemon”, 安全是它的开发者 Chris Evans 考虑的首要问题之一。在这个 FTP 服务器设计开发的最开始的时候,高安全性就是一个目标。 安装vsftpd 1、以管理员(root)身份执行以下命令 yum install vsftpd 2、设置开机启动vsftpd ftp服务 chkco…

2014-10-17 17:56 · Linux · 评论(0) · CentOS · ftp

centOS下 PHP + swoole 安装记录

swoole 有点类似node.js , swoole纯C编写的PHP扩展. 多进程和非阻塞 安装php : 先卸载: yum remove php php-bcmath php-cli php-common php-devel php-fpm php-gd php-imap php-ldap php-mbstring php-mcrypt php-mysql php-odbc php-pdo php-pear php-pecl-igbinary php-xml php-xmlrpc 源 rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.r…

2014-10-17 17:27 · Swoole · 评论(0) · PHP