`
文章列表

su 和 su - 的区别

su命令和su -命令最大的本质区别   su命令和su -命令最大的本质区别就是: 前者只是切换了root身份,但Shell环境仍然是普通用户的Shell; 而后者连用户和Shell环境一起切换成root身份了。 只有切换了Shell环境才不会出现PATH环境变量错误。 su切换成root用户以后,pwd一下,发现工作目录仍然是普通用户的工作目录; 而用su -命令切换以后,工作目录变成root的工作目录了。 用echo $PATH命令看一下su和su -以后的环境变量有何不同。   xin@xin-VirtualBox:/var/www$ su密码: root@xin ...

phpRedisAdmin

phpRedisAdmin 安装和使用   phpRedisAdmin是一个PHP的Redis WEB管理工具。     1. 下载phpRedisAdmin phpRedisAdmin 1.6.0 phpRedisAdmin is a simple web interface to manage Redis databases. It is released under the Creative Commons Attribution 3.0 license. This code is being developed and maintained by Erik Dubbel ...

安装 fis3

安装 fis3   1. 安装好 node-v4.6.0 以后,查看版本信息: # node -v  2. 安装 fis3 //全局安装 # sudo npm install fis3 -g  3. 查看版本 # fis3 -v   npm install -g cnpm --registry=https://registry.npm.taobao.org cnpm是淘宝的npm 镜像 装上cnpm后,以 ...
ubuntu 15.10 安装 Memcache 1, Memcached需要libevent支持,安装libevent。     Debian/Ubuntu: sudo apt-get install libevent-dev     Redhat/Centos: sudo yum install libevent-devel    2, 下载 Memcached 编译安装。    官方网址:http://memcached.org/downloads wget ...
安装 python 的 redis 客户端   1,下载 ez_setup.py wget -q http://peak.telecommunity.com/dist/ez_setup.py  2, 运行 ez_setup.py 安装 setuptools   sudo python ez_setup.py  Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.eggProcessing setuptools-0.6c11-py2.7.eggCopying se ...
Sublime  安装的插件列表    https://packagecontrol.io/installation 被墙了,访问下面的链接 http://www.miaoqiyuan.cn/products/proxy.php/https://packagecontrol.io/installation 这位大神的开源项目地址在:https://gitee.com/mqycn/Proxy-for-Chinese-programmer/    Alignment AutoFileName Color Highlighter CodeFormatter CTags Bra ...
SQLyog v12.09 (64 bit) 注册码   姓名(Name):cr173序列号(Code):8d8120df-a5c3-4989-8f47-5afc79c56e7c或者(OR)姓名(Name):cr173序列号(Code):59adfdfe-bcb0-4762-8267-d7fccf16beda或者(OR)姓名(Name):cr173序列号(Code):ec38d297-0543-4679-b098-4baadf91f983
PHP的垃圾回收机制是怎样的?         描述:PHP使用引用计数(reference counting)垃圾回收(garbage collection)机制,每个对象都内含一个引用计数器,每当一个引用连接到对象时,计数器加1,当reference离开生成空间或被设置为NULL是,计数器减1,。当某个对象的引用计数器为0时,PHP引擎知道你将不再需要这个对象,释放其所占的内存空间。        &操作是指针吗?        不是,&操作是建立了引用指向,不是指针,PHP没有指针的概念。类似于UNIX的文件软链接。        Unset()操作和赋 null值操 ...

C代码收藏(一)

    博客分类:
  • C
C代码收藏(一)   从今天开始收藏一些比较常见的小程序代码,留做学习之用。 1.有一分数序列:   2/1, 3/2, 5/3,8/5,13/8, 21/13 ... 求出这个数列的前20项之和。   #include <stdio.h> main() { int i, t, n = 20; float a = 2, b = 1, s = 0; for (i = 1; i <=n; i++) { s = s + a/b; t = a; a = a + b; // 将前一项与分母之和作为下一项的分子 b = ...
为什么有了 fastcgi_params  还要有 fastcgi.conf   fastcgi.conf   对比下fastcgi.conf与fastcgi_params文件,可以看出只有以下差异:   tctq4master@ddd:/etc/nginx$ diff fastcgi.conf fastcgi_params 2d1 < fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_scr ...
fastcgi_param解释   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;#脚本文件请求的路径 fastcgi_param QUERY_STRING $query_string; #请求的参数;如?app=123 fastcgi_param REQUEST_METHOD $request_method; #请求的动作(GET,POST) fastcgi_param CONTENT_TYPE $content_t ...
 http://www.w2bc.com/article/47069 http://www.miaoyueyue.com/archives/813.html http://www.cnblogs.com/humble/p/3149734.html http://justinvoelkel.me/laravel-angularjs-part-two-login-and-authentication/ MySQL 在数据冲突时实际上是删掉了旧记录,再写入新记录,这是使用 REPLACE INTO 时最大的一个误区, 而满足这一需求的 MySQL 方言是 INSERT INTO auto ...
Laravel 5 Use of undefined constant MCRYPT_RIJNDAEL_128 错误   php artisan -VPHP Notice:  Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /var/www/ngLav5/config/app.php on line 83Laravel Framework version 5.0.16gao@gao-VirtualBox:/var/www/ngLav5$ composer updateLoadi ...
    production.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in /var/www/ngLaHotel/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:29// 复制 .env gao@gao-VirtualBox:/var/www/ngLaHotel$ cp ...
ubuntu 12.04 使用 composer 安装 Luracast Restler        Restler is a simple and effective multi-format Web API Server written in PHP.    Just deal with your business logic in php, restler will take care of the REST! 一、安装     使用 composer 安装 Luracast Restler. 也可以直接在 github 上 clone 或者下载到 zip 包.     ...
Global site tag (gtag.js) - Google Analytics