拥有Linux标签的文章

XML转Array

function toArray($xml){     //禁止引用外部xml实体     libxml_disable_entity_loader(true);     $result= json_decode(json_encode(simplexm
阅读全文

删除文件和文件夹

function delDirAndFile($path, $delDir = FALSE) {     $handle = opendir($path);     if ($handle) {   &n
阅读全文

unicode与中文互转

/**  * 将内容进行UNICODE编码,如中文字符串"图片" 转为"\u56fe\u7247"  * @param string $name 要转换的中文字符串  * @param string $in_charset 
阅读全文

centos6.8安装ftp

注:需用root来执行1、 安装vsftpd# yum update  更新源# yum install vsftpd  安装vsftpd服务器2、配置vsftpd.#  vi  /etc/vsftpd/vsftpd.conf  配置vsftpd主配置文件找到如下项目更改或打开#anonymous_enable=NO   禁止匿
阅读全文

阿里云Centos7 yum安装PHP7.2 LNMP环境配置 (centos7+nginx+MySQL5.7.x+PHP7.2)

首先更新系统软件$ yum update安装nginx1.安装nginx源$ yum localinstall http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm2.安装nginx$ yum inst
阅读全文

Linux定时任务

定时任务,crontab
阅读全文

crontab定时任务

每10秒执行一次某个方法,可以使用curl模拟请求 * * * * *  curl www.xxxx.com/index.php/appapi/fans/test * * * * * sleep 10; curl www.xxxx.c
阅读全文

删除文件和文件夹

删除文件和文件夹
阅读全文

yum安装lnmp环境

一、安装nginx1、输入命令 # yum -y install nginx注:如出现 更换yum源,执行以下操作:wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm && rpm -Uvh epel-release-latest-6.noarch.rpm&nbs
阅读全文
首页 123 末页 共 29 条记录