国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home php教程 php手冊(cè) php 提速工具eAccelerator 配置參數(shù)詳解

php 提速工具eAccelerator 配置參數(shù)詳解

Jun 13, 2016 pm 12:16 PM
eaccelerator php size parameter tool speed up Detailed explanation Configuration

eaccelerator.shm_size="32"
eAccelerator 可以使用的共享內(nèi)存的數(shù)量 (以兆為單位) . "0" 是指操作系統(tǒng)的默認(rèn)值. 默認(rèn)值是 "0".可根據(jù)服務(wù)器的實(shí)際情況來調(diào)整,16,32,64,128都是可以的。

eaccelerator.cache_dir="/home/php/tmp"
這個(gè)目錄是給磁盤緩存使用. eAccelerator 在這里儲(chǔ)存預(yù)先編譯好的代碼, 進(jìn)程數(shù)據(jù), 內(nèi)容以及用戶的自定義內(nèi)容. 同樣的數(shù)據(jù)也能被儲(chǔ)存在共享內(nèi)存中 (這樣可以提高訪問速度). 默認(rèn)的設(shè)置是 "/tmp/eaccelerator".

eaccelerator.enable="1"
開啟或關(guān)閉 eAccelerator。"1" 為開啟,"0" 為關(guān)閉。默認(rèn)值為 "1"。

eaccelerator.optimizer="1"
啟或關(guān)閉內(nèi)部?jī)?yōu)化器,可以提升代碼執(zhí)行速度。"1" 為開啟,"0" 為關(guān)閉。默認(rèn)值為 "1"。

eaccelerator.check_mtime="1"
打開或者關(guān)閉 PHP 的文件修改檢查. "1" 是指打開, "0" 是指關(guān)閉. 如果您在修改以后重新編譯 PHP 的文件,那么您應(yīng)當(dāng)設(shè)置為 "1". 默認(rèn)值是 "1".

eaccelerator.debug="0"
開啟或關(guān)閉調(diào)試日志記錄。"1" 為開啟,"0" 為關(guān)閉。默認(rèn)值為 "0"。會(huì)將緩存命中得記錄寫入日志。

eaccelerator.filter=""
判斷哪些 PHP 文件必須緩存。您可以指定緩存和不緩存的文件類型(如 "*.php *.phtml"等)
如果參數(shù)以 "!" 開頭,則匹配這些參數(shù)的文件被忽略緩存。默認(rèn)值為 "",即,所有 PHP 文件都將被緩存。
eaccelerator.shm_max="0"
當(dāng)使用 " eaccelerator_put() " 函數(shù)時(shí)禁止其向共享內(nèi)存中存儲(chǔ)過大的文件。該參數(shù)指定允許存儲(chǔ)的最大值,單位:字節(jié) (10240, 10K, 1M)。"0" 為不限制。默認(rèn)值為 "0"。

eaccelerator.shm_ttl="0"
當(dāng) eAccelerator 獲取新腳本的共享內(nèi)存大小失敗時(shí),它將從共享內(nèi)存中刪除所有在最后 "shm_ttl" 秒內(nèi)沒有存取的腳本緩存。默認(rèn)值為 "0",即:不從共享內(nèi)春中刪除任何緩存文件。

eaccelerator.shm_prune_period="0"
當(dāng) eAccelerator 獲取新腳本的共享內(nèi)存大小失敗時(shí),他將試圖從共享內(nèi)存中刪除早于"shm_prune_period" 秒的緩存腳本。默認(rèn)值為 "0",即:不從共享內(nèi)春中刪除任何緩存文件。

eaccelerator.shm_only="0"
允許或禁止將已編譯腳本緩存在磁盤上。該選項(xiàng)對(duì) session 數(shù)據(jù)和內(nèi)容緩存無效。默認(rèn)值為 "0",即:使用磁盤和共享內(nèi)存進(jìn)行緩存。

eaccelerator.compress="1"
允許或禁止壓縮內(nèi)容緩存。默認(rèn)值為 "1",即:允許壓縮。

eaccelerator.compress_level="9"
指定內(nèi)容緩存的壓縮等級(jí)。默認(rèn)值為 "9",為最高等級(jí)。

eaccelerator.keys = "disk_only"
eaccelerator.session = "disk_only"
eaccelerator.content = "disk_only"
設(shè)置內(nèi)容緩存的存放的地方,可以設(shè)置為:
shm_and_disk 在共享緩存和硬盤(默認(rèn)值)
shm 默認(rèn)存在共享內(nèi)存,如果共享內(nèi)存已滿或大小超過 "eaccelerator.shm_max" 的值,就存到硬盤
shm_only 只存放在共享內(nèi)存
disk_only 只存放在硬盤
none 不緩存數(shù)據(jù)

eaccelerator.allowed_admin_path = "/var/www/html/21andy.com/eaccelerator"
這是控制面板的地址
安裝包里有個(gè)control.php,你把它復(fù)制到網(wǎng)站的任意目錄,可以用它查看和管理,這個(gè)必須指定,否則查看緩存內(nèi)容的時(shí)候會(huì)出錯(cuò)

最后,來看一下我的 eAccelerator 設(shè)置

復(fù)制代碼 代碼如下:


; eaccelerator
[eaccelerator]
zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so"
eaccelerator.shm_size="128"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"
eaccelerator.shm_prune_period="3600"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys = "disk_only"
eaccelerator.sessions = "disk_only"
eaccelerator.content = "disk_only"
eaccelerator.allowed_admin_path = "/var/www/html/21andy.com/eaccelerator"


另外,再說下 eAccelerator 的安裝

# wget http://bart.eaccelerator.net/source/0.9.6/eaccelerator-0.9.6.tar.bz2
# tar -jxvf eaccelerator-0.9.6.tar.bz2
# cd eaccelerator-0.9.6
# /usr/local/php/bin/phpize
# ./configure --enable-eaccelerator=shared --with-php-config=/usr/local/php/bin/php-config
# make && make install
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

LayerZero, StarkNet, ZK Ecological Preheat: How long can the airdrop bonus last? LayerZero, StarkNet, ZK Ecological Preheat: How long can the airdrop bonus last? Jul 16, 2025 am 10:06 AM

The duration of the airdrop dividend is uncertain, but the LayerZero, StarkNet and ZK ecosystems still have long-term value. 1. LayerZero achieves cross-chain interoperability through lightweight protocols; 2. StarkNet provides efficient and low-cost Ethereum L2 expansion solutions based on ZK-STARKs technology; 3. ZK ecosystem (such as zkSync, Scroll, etc.) expands the application of zero-knowledge proof in scaling and privacy protection; 4. Participation methods include the use of bridging tools, interactive DApps, participating test networks, pledged assets, etc., aiming to experience the next generation of blockchain infrastructure in advance and strive for potential airdrop opportunities.

The flow of funds on the chain is exposed: What new tokens are being bet on by Clever Money? The flow of funds on the chain is exposed: What new tokens are being bet on by Clever Money? Jul 16, 2025 am 10:15 AM

Ordinary investors can discover potential tokens by tracking "smart money", which are high-profit addresses, and paying attention to their trends can provide leading indicators. 1. Use tools such as Nansen and Arkham Intelligence to analyze the data on the chain to view the buying and holdings of smart money; 2. Use Dune Analytics to obtain community-created dashboards to monitor the flow of funds; 3. Follow platforms such as Lookonchain to obtain real-time intelligence. Recently, Cangming Money is planning to re-polize LRT track, DePIN project, modular ecosystem and RWA protocol. For example, a certain LRT protocol has obtained a large amount of early deposits, a certain DePIN project has been accumulated continuously, a certain game public chain has been supported by the industry treasury, and a certain RWA protocol has attracted institutions to enter.

Your First PHP Script: A Practical Introduction Your First PHP Script: A Practical Introduction Jul 16, 2025 am 03:42 AM

How to start writing your first PHP script? First, set up the local development environment, install XAMPP/MAMP/LAMP, and use a text editor to understand the server's running principle. Secondly, create a file called hello.php, enter the basic code and run the test. Third, learn to use PHP and HTML to achieve dynamic content output. Finally, pay attention to common errors such as missing semicolons, citation issues, and file extension errors, and enable error reports for debugging.

What is PHP and What is it Used For? What is PHP and What is it Used For? Jul 16, 2025 am 03:45 AM

PHPisaserver-sidescriptinglanguageusedforwebdevelopment,especiallyfordynamicwebsitesandCMSplatformslikeWordPress.Itrunsontheserver,processesdata,interactswithdatabases,andsendsHTMLtobrowsers.Commonusesincludeuserauthentication,e-commerceplatforms,for

PHP 8 Installation Guide PHP 8 Installation Guide Jul 16, 2025 am 03:41 AM

The steps to install PHP8 on Ubuntu are: 1. Update the software package list; 2. Install PHP8 and basic components; 3. Check the version to confirm that the installation is successful; 4. Install additional modules as needed. Windows users can download and decompress the ZIP package, then modify the configuration file, enable extensions, and add the path to environment variables. macOS users recommend using Homebrew to install, and perform steps such as adding tap, installing PHP8, setting the default version and verifying the version. Although the installation methods are different under different systems, the process is clear, so you can choose the right method according to the purpose.

How Do You Handle File Operations (Reading/Writing) in PHP? How Do You Handle File Operations (Reading/Writing) in PHP? Jul 16, 2025 am 03:48 AM

TohandlefileoperationsinPHP,useappropriatefunctionsandmodes.1.Toreadafile,usefile_get_contents()forsmallfilesorfgets()inaloopforline-by-lineprocessing.2.Towritetoafile,usefile_put_contents()forsimplewritesorappendingwiththeFILE_APPENDflag,orfwrite()w

Bitcoin, Chainlink, and RWA resonance rise: crypto market enters institutional logic? Bitcoin, Chainlink, and RWA resonance rise: crypto market enters institutional logic? Jul 16, 2025 am 10:03 AM

The coordinated rise of Bitcoin, Chainlink and RWA marks the shift toward institutional narrative dominance in the crypto market. Bitcoin, as a macro hedging asset allocated by institutions, provides a stable foundation for the market; Chainlink has become a key bridge connecting the reality and the digital world through oracle and cross-chain technology; RWA provides a compliance path for traditional capital entry. The three jointly built a complete logical closed loop of institutional entry: 1) allocate BTC to stabilize the balance sheet; 2) expand on-chain asset management through RWA; 3) rely on Chainlink to build underlying infrastructure, indicating that the market has entered a new stage driven by real demand.

Dogecoin, Pepe, Brett swept the meme track: speculation or new narrative? Dogecoin, Pepe, Brett swept the meme track: speculation or new narrative? Jul 16, 2025 am 09:57 AM

Dogecoin, Pepe and Brett are leading the meme coin craze. Dogecoin (DOGE) is the originator, firmly ranked first in the market value list, Pepe (PEPE) has achieved hundreds of times increase with its social geek culture, and Brett (BRETT) has become popular with its unique visual style as a new star in Base chain; the three were issued in 2013, 2023 and 2024 respectively. Technically, Dogecoin is based on Litecoin, Pepe and Brett are ERC-20 tokens, and the latter relies on the Base chain to improve efficiency. In terms of community, DOGE Twitter fans have exceeded 3 million, Pepe Reddit is leading in activity, Brett's popularity in Base chain, and DOGE has logged in on the platform.

See all articles