久久免费视频鬼狠狠_久久五月天和激情网_亚洲人成在线播放a偷伦_午夜无码免费视频一区二区

廣豐視角

關注互聯(lián)網,關注技術開發(fā),透析與分享移動互聯(lián)網行業(yè)最新動態(tài)

apache 默認配置

時間:2019-02-17 13:31:01    閱讀:40618次 分類:小程序開發(fā)
怎么查看和修改 mysql 的最大連接數(shù)? mysql 默認的最大連接數(shù)為 100,可以在 mysql 客戶端使用以下命令查看 mysql> show variables like max_connections; vi /etc/my.cnf [mysqld] set-variable=max_connections=2000 #加入這些內容 :wq /etc/init....

怎么查看和修改 MySQL 的最大連接數(shù)?  

MySQL 默認的最大連接數(shù)為 100,可以在 mysql 客戶端使用以下命令查看

mysql> show variables like 'max_connections';
vi /etc/my.cnf
    [mysqld]
set-variable=max_connections=2000  #加入這些內容
:wq
/etc/init.d/mysqld restart


最大上傳文件  

vi /etc/php.ini


二級域名的配置
其次,在 httpd.conf 中打開 mod_rewrite


rewriteengine on
rewritecond %{HTTP_HOST} [^.]+.fx553.com$
rewriterule ^(.+) %{HTTP_HOST}$1 [C]
rewriterule ([^.]+).fx553.com(.*) /$1$2


    DirectoryIndex index.php index.php3 index.html index.htm index.html.var
圖片上傳php-ini
extension=php_gd2.dll


linux
extension=/usr/local/libgdgd.so


日志管理
編輯conf文件夾下的httpd.conf,找到如下內容: 
 
===================== 

# LogLevel: Control the number of messages logged to the error_log. 
# Possible values include: debug, info, notice, warn, error, crit, 
# alert, emerg. 

LogLevel warn 
===================== 
其中,LogLevel用于調整記于錯誤日志中的信息的詳細程度。(參閱ErrorLog指令)??梢赃x擇下列級別,依照重要性降序排列: 
 
Level Description Example  
emerg 緊急 - 系統(tǒng)無法使用。 "Child cannot open lock file. Exiting"  
alert 必須立即采取措施。 "getpwuid: couldn't determine user name from uid"  
crit 致命情況。 "socket: Failed to get a socket, exiting child"  
error 錯誤情況。 "Premature end of script headers"  
warn 警告情況。 "child process 1234 did not exit, sending another SIGHUP"  
notice 一般重要情況。 "httpd: caught SIGBUS, attempting to dump core in ..."  
info 普通信息。 "Server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers)..."  
debug 出錯級別信息 "Opening config file ..."  
 
 
默認級別是warn,那么warn級別以上的日志都會記錄,會產生大量“文件不存在”的erro級別的錯誤日志。建議使用 crit 級別的設置,這樣只記錄致命級別以上的日志,有效減少日志數(shù)量。 


蕪湖廣豐軟件有限公司(原中江網絡),成立于2005年,經過10多年定制開發(fā)經驗,積累了大量技術儲備和定制開發(fā)經驗,是一家集軟件研發(fā)、互聯(lián)網應用為一體的綜合信息技術服務提供商。公司擁有核心的策劃團隊和專業(yè)的技術研發(fā)團隊,致力于采用領先的信息技術,長期為涉及智慧園區(qū)/廠區(qū)/校園領域的各個企業(yè)提供快速、高效、安全的信息技術支持。公司立足智慧園區(qū)和智慧教育行業(yè),通過軟硬件的研發(fā)和互聯(lián)網應用,疏通各企業(yè)間“端到端”的信息傳輸,靈活滿足智慧園區(qū)和智慧教育企業(yè)間不同用戶的需求,為其提供完善的信息化解決方案。

廣豐軟件gf-yun.com安徽軟件開發(fā),MySQL,apache
廣豐軟件
智慧園區(qū)系統(tǒng)開發(fā)
最新資訊排行榜