Time of Update: 2016-08-08
一、修改Apache連接埠 1、在介面中選Apache,彈出隱藏菜單選項,開啟設定檔httpd.conf;2、找到 Listen 80; 3、將 80 改成 8080(當然自己也可以設定別的不使用的連接埠);4、儲存,待重啟Wamp服務後即可。 二、修改Wamp開啟預設頁 Localhost 和 phpMyadmin 的連接埠 1、開啟wamp目錄下wampmanager.tpl檔案2、找到Parameters: "http://localhost/"; Glyph: 5Parameters:
Time of Update: 2016-08-08
favicon.ico介紹favicon.ico是個什麼東西呢,也許見得太多都習以為常了(我就是這樣,直到寫這篇文章之前才知道),看看維基百科的解釋:Favicon是favorites icon的縮寫,亦被稱為website icon(網頁表徵圖)、page icon(頁面表徵圖)或urlicon(URL表徵圖),下面是連結
Time of Update: 2016-08-08
四.格式化字串函數 number_format()$str = "123445677";$strl = number_format($str);$str2 = number_format($str,2);$str3 = number_format($str,2,",",'.');echo$str."";echo$strl."";echo$str2."";echo$str3.""; 結果如下所示,number_format(str)表示在千分位上加,隔開。number_format(str,2)
Time of Update: 2016-08-08
環境配置:開啟伺服器偽靜態本處以apache為例,查看apache的conf目錄下httpd.conf,找到下面的代碼LoadModule rewrite_module modules/mod_rewrite.so將其前面的#去掉,如果沒有找到則添加進去。找到一下代碼 AllowOverride All Options None Require all granted將原本的AllowOverride None改為AllowOverride All。然後在網站根目錄下建立一個.
Time of Update: 2016-08-08
git和SVN的核心區別SVN是不是要有台伺服器如果用戶端訪問不了伺服器,你的代碼還能提交嗎?git可以解決這個問題git是誰開發的, LINUX是誰開發,托瓦茲,雷納斯(小時候被企鵝咬了)git的版本庫每個人都可以複製例子: 比如現在有一個git版本庫了 現在有一個SVN版本庫 區別: git可以每一個使用者都複製一個版本庫 svn可以每一個使用者都檢出一個用戶端 詳細:
Time of Update: 2016-08-08
/*本人愚昧,在網上找了很多的教程,幾番折磨,最後在貼吧上終於有了盼頭!在這分享一下,希望勿噴。*/ /*這是在windows機子上,我並不知道win32、win64的區別,搭建的時候,雖然寫是win32的,但我是win64的,照樣可以裝!*/一、檔案下載(見):檔案下載地址: http://pan.baidu.com/s/1o6KG41k 二、首先在在E盤建立2個檔案夾 我的是在E盤。你可以根據自己的需要建立在任意位置。
Time of Update: 2016-08-08
1、什麼是許可權管理,許可權管理就是對後台功能的細分,和對不同工作人員劃分不同的工作的管理RBAC是如何?的,通過對不同控制器和控制器不同方法的限制,實現的管理。要實現RBAC需要三張表,一張使用者表,一張角色表 ,一張許可權表使用者表:id ****** role_id角色表role_id ****** access_ids(記錄所有可以訪問的許可權id)許可權表access_id 記錄所有控制器 或者控制器下的
Time of Update: 2016-08-08
一.負載平衡配置# 負載平衡upstream webserver { server192.168.27.134:8080; server192.168.27.135:80; server192.168.27.136:80;}# 反向 Proxyserver { listen80; server_name www.test01.com; location / { proxy_passhttp://webserver;
Time of Update: 2016-08-08
本節內容:nginx與apache的優缺點一、nginx相對於apache的優點: 輕量級,同樣起web 服務,比apache伺服器佔用更少的記憶體及資源 抗並發,nginx在處理請求是非同步非阻塞的,而apache 則是阻塞型的,在高並發下nginx 能保持低資源低消耗高效能 高度模組化的設計,編寫模組相對簡單 社區活躍,各種高效能模組出品迅速啊 apache 相對於nginx 的優點: rewrite ,比nginx 的rewrite 強大 動態網頁面模組超多,基本想到的都可以找到
Time of Update: 2016-08-08
max os x安裝 php,使用brew 安裝,一直提示 checking for gzgets in -lz... yeschecking whether to enable bc style precision math functions... yeschecking for BZip2 support... yeschecking for BZip2 indefault path... notfoundconfigure: error: Please reinstall the
Time of Update: 2016-08-08
php通過如下方式調用memcache存放session的時候,記得需要把/usr/local/php/etc/php.ini中的session.auto_start = 0 設定為0 ,否則調用memcache儲存session,是不生效的。原因是:在php執行第一行的時候回自動啟動session,而且預設的是files,所以預設就會通過檔案儲存session,而在之後配置的ini_set 就沒有用了。// session設定方式一:這種方式
Time of Update: 2016-08-08
為了學習高效能並發伺服器,打算研究一下Nginx的實現。按照慣例,最開始都要寫一個hello world的程式,所以接下來就是介紹如何在Nginx的架構下編寫一個簡單的HTTP模組來列印”Hello
Time of Update: 2016-08-08
零. 聲明:以下內容適用於linux環境下,採用源碼方式安裝Nginx官網安裝指南:http://wiki.nginx.org/InstallChs一. 下載nginx1.官網下載:http://nginx.org/en/download.html 2.Git下載:https://github.com/nginx/nginx二. 必要的依賴庫1.pcreyum -y install pcre* #nginx rewrite模組2.gccyum -y install gcc gcc-c++
Time of Update: 2016-08-08
1.Nginx設定檔測試root@kallen:/usr/local/nginx/sbin# nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful2.Nginx啟動[root@kallen ~]# /usr/local/nginx/sbin/nginx
Time of Update: 2016-08-08
使用thinkphp 的時候 表單裡的name 名稱 必須要和資料庫裡的名稱相同 這樣才能把資料插入到資料庫中,為了更加安全有時候我們不想讓別人知道資料庫中的欄位名 這時我們就可以使用thinkphp的欄位對應namespace Home\Model;use Think\Model;class UserModel extends Model{ proceted $_map(){ "name"=>"username"; //把表單中的name 映射到
Time of Update: 2016-08-08
//thinkphp 資料庫操作//配置 數組形式 採用普通配置和資料庫配置兩數組合并 $arr1=array( //'配置項'=>'配置值' //url pathinfo 的4種方法0,1,2,3常用0,1 "URL_MODEL"=>0, //URL_PATHINFO普通模式 "URL_PATHINFO_MODEL"=>2,);$arr2=array( //資料庫配置 'DB_TYPE' => '
Time of Update: 2016-08-08
我想要的是 訪問 news.test.com , 實際訪問的是 tomcat 下面的news 項目 ,訪問 forum.test.com ,實際訪問的是 tomcat 下面的 luntan 項目,但是瀏覽器地址 欄url news.test.com 、forum.test.com 不變 ,不要變成 news.test.com/news 或者 forum.test.com/luntan 這樣的,如何配置? 請教謝謝各位的回答,已經解決了。 需要在tomcat裡面配置虛擬host。
Time of Update: 2016-08-08
對excel表格進行操作,要用到PHPExcel外掛程式。由於我一般都用的是CI架構,以CI架構來介紹。首先要引入PHPExcel的相關檔案:$this->load->library('PHPExcel/IOFactory');$this->load->model('search_model');接下來介紹怎麼匯出excel檔案,首先要建立工作表,並對它進行初始化://建立工作表$objPHPExcel = new PHPExcel();//
Time of Update: 2016-08-08
添加源檔案首先在src/core/目錄下添加兩個檔案,分別是my_debug.h和my_debug.c。#ifndef MY_DEBUG_LENKY_H#define MY_DEBUG_LENKY_H#include void enable_my_debug(void) __attribute__ ((no_instrument_function));void disable_my_debug(void) __attribute__ ((no_instrument_function));int
Time of Update: 2016-08-08
一、修改httpd.conf開啟appserv的安裝目錄,找到httpd.conf檔案,分別去掉下面兩行文字前面的#號。 [plain] view plaincopy#LoadModule vhost_alias_module modules/mod_vhost_alias.so 去掉#意思是啟用apache的虛擬機器主機功能。 [plain] view plaincopy#Include conf/extra/httpd-vhosts.conf 去掉這一行的#意思是從conf/extra/