linux安装ftp
摘要:提示FTP服务的软件有很多,在这里我就以 vsftp 为例。并且是在 centos 7 环境下安装的。 (https://jingyan.baidu.com/article/380abd0a77ae041d90192cf4.html) 服务器端 FTP vsftp 安装 1. # yum insta
阅读全文
linux apache 不解析php文件显示源码
摘要:首先检查是否安装PHP 没有的话就先安装 如果安装过 在/etc/httpd/conf/httpd.conf文件中 在<IfModule mime_module>里面 AddType application/x-httpd-php .php AddType application/x-httpd-p
阅读全文
linux 权限
摘要:在程序中通过代码实现生成文件和文件夹的功能的配置: 给/var/www/html 添加777的权限 chmod 777 -R xxx (更改文件夹及其子文件夹权限为777) SELinux这个是一个安全服务,但是配置复杂,会影响很多软件的部署。 禁用SELinux(永久生效) 修改/etc/sysc
阅读全文
Linux MySQL 修改密码
摘要:修改root本地登录密码 修改root默认的密码(方法一)1. 启动mysql之后systemctl start mysqld.service2. 修改mysql的配置文件 vi /etc/my.cnf找到[mysqld]skip-grant-tablesskip-networking 3. 重启m
阅读全文
Linux yum安装
摘要:一.安装Apache软件步骤:1.安装 yum install httpd 2.启动,关闭 重启等命令systemctl start httpd.service(启动)systemctl restart httpd.service(重启)systemctl stop httpd.servicesys
阅读全文
Linux远程连接
摘要:SecureCRT:界面很好看 功能强大 使用序列号: 名字:Windows公司:IC序列号:03-50-006486许可密钥:AC9RR7 MB7F15 CFP77G PEXZ1C AART1P 65N397 REHBMJ UUTXRP发布日期:29-03-2006 乱码:选项->会话选项->外观
阅读全文
Linux连接外网
摘要:1.给linux配置ip 进行远程管理 如果网络不同的话需要配置网卡,命令如下: vi /etc/sysconfig/network-scripts/ifcfg-enp0s3 回车 就出现网络的环境 在它下面修改命令 ONBOO="yes" //可能不用修改 BOOTPROTO="static" 在
阅读全文
Linux命令
摘要:文件目录操作命令 [sql] 系统管理命令: [sql] 备份压缩命令: 实例:压缩服务器上当前目录的内容为xxx.zip文件 zip xxx.zip ./* 解压zip文件到当前目录 unzip filename.zip tar命令的选项有很多(用man tar可以查看到),但常用的就那么几个选项
阅读全文
linux简介
摘要:Linux的特点:免费的,开源的,安全性好,对内存和文件管理优越,系统稳定,消耗资源少 Linux的缺点:操作相对困难,一些专业软件以及游戏支持度不足 Linux的应用 网络服务器 关键任务的应用(金融数据库、大型企业网管环境) 学术机构癿高效能运算任务 手持系统(PDA、手机、导航系统) 个人办公
阅读全文
php常见验证
摘要:/** * 文件上传 * @param $file 要上传的文件 * @param $size 大小设置 * @param $ext 文件类型 * @return bool 是否上传成功 */function imgUpload($file, $size, $ext){ $info = $file-
阅读全文
微信识别语音
摘要:wechat.html <!DOCTYPE html><html lang="en"><script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script><script> var _title=document.title; //
阅读全文
微信接口
摘要:class Wechat extends Controller { private $appid=''; private $appsecret=''; public function index(){ // $this->createMenu(); // echo $this->getToken()
阅读全文
封装cookie
摘要://创建cookie function setCookie(name, value, expires, path, domain, secure) { var cookieText=encodeURIComponent(name)+'='+encodeURIComponent(value); if
阅读全文
ajax请求数据
摘要:封装ajax function ajax_(_type,_url,_data,callback,_dataType){ _dataType=_dataType==undefined?"text":_dataType; $.ajax({ type:_type, url:_url, async:true
阅读全文
PHP生成验证码
摘要:<?phpheader("content-type:image/png");$img=imagecreatetruecolor(80,40);$red=imagecolorallocate($img,0xff,0x00,0x00);$black = imagecolorallocate($img,
阅读全文
PHP连接mysql
摘要:$servername = "localhost"; //服务器$username = "root"; //用户名$password = "root"; //密码$dbname="base"; //表名$params = array ( PDO::MYSQL_ATTR_INIT_COMMAND =>
阅读全文
ext笔记
摘要:命名 The top-level namespaces and the actual class names should be CamelCased. Everything else should be all lower-cased. For example:MyCompany.form.act
阅读全文
Yii框架
摘要:安装: 配置cookievalidationkey,为了防止cookie攻击,随便配置一个值 'cookieValidationKey' => 'aaa', 命名空间: 没有命名空间namespace的类是全局类,重命名相同类用as 访问全局类 访问 控制层以controller结尾,方法以acti
阅读全文
vue vuex
摘要:安装:npm install --save vuex在mian.js中import Vuex from 'vuex';Vue.use(Vuex);import store from './store/index';在new Vue({ })中加入 store:store, //注入到vue 在src
阅读全文
vue引用文件
摘要:1)css引入在vue页面中<style scoped> @import url("../assets/css/home.css");</style>2)js引入js文件home.jsvar listobj={ getdata:function(_this){ _this.$router.push(
阅读全文
vue-resource
摘要:安装npm install vue-resource引入import VueResource from 'vue-resource';Vue.use(VueResource);使用get方法this.$http.get("http://localhost/test.php").then( funct
阅读全文
vue axios
摘要:安装:npm install axios引用:在mian.js中import axios from 'axios';axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';Vue.protot
阅读全文
vue-wechat-title
摘要:html中的title安装:npm install vue-wechat-title --save1.在mian.js中//网页titleimport VueTitle from 'vue-wechat-title' Vue.use(VueTitle);2. 路由中加下 title { path:
阅读全文
vue安装
摘要:1)安装node.js环境:node.js从node.js官网下载并安装node,安装过程很简单,一直点下一步就ok了验证是否安装成功:node -v npm -v --安装cnpm 在命令行中输入 npm install -g cnpm --registry=http://registry.npm
阅读全文