聰明屋視角
關(guān)注互聯(lián)網(wǎng),關(guān)注技術(shù)開發(fā),透析與分享移動互聯(lián)網(wǎng)行業(yè)最新動態(tài)apache 默認(rèn)配置
時間:2019-02-17 13:31:01 閱讀:21590次 分類:解決方案
怎么查看和修改 MySQL 的最大連接數(shù)?
MySQL 默認(rèn)的最大連接數(shù)為 100,可以在 mysql 客戶端使用以下命令查看
mysql> show variables like 'max_connections';
vi /etc/my.cnf
[mysqld]
set-variable=max_connections=2000 #加入這些內(nèi)容
: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,找到如下內(nèi)容:
=====================
#
# 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用于調(diào)整記于錯誤日志中的信息的詳細(xì)程度。(參閱ErrorLog指令)。可以選擇下列級別,依照重要性降序排列:
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 ..."
默認(rèn)級別是warn,那么warn級別以上的日志都會記錄,會產(chǎn)生大量“文件不存在”的erro級別的錯誤日志。建議使用 crit 級別的設(shè)置,這樣只記錄致命級別以上的日志,有效減少日志數(shù)量。
蕪湖市聰明屋智能科技有限公司(原中江網(wǎng)絡(luò)),成立于2005年,經(jīng)過10多年定制開發(fā)經(jīng)驗,積累了大量技術(shù)儲備和定制開發(fā)經(jīng)驗,率先創(chuàng)建安徽省內(nèi)自主研發(fā)的云計算平臺,具有大數(shù)據(jù)、高并發(fā)等高強(qiáng)度計算能力,為眾多政府、學(xué)校、公安部門、中小企業(yè)解決數(shù)據(jù)計算與管理難題。2013年公司內(nèi)部專門創(chuàng)建電商服務(wù)部,為企業(yè)提供全方位電商解決方案與配套服務(wù)。多次獲得國家、省市級領(lǐng)導(dǎo)接見,被國內(nèi)近20家電視臺、報紙媒體爭相報道。至今,聰明屋智能科技服務(wù)過上市公司、大型國企、各類私企超800家,為多家公司提供各類政務(wù)系統(tǒng)、app開發(fā)定制、微信小程序開發(fā)定制、智能家居、電商系統(tǒng)、連鎖收銀等技術(shù)解決方案服務(wù)。同時,聰明屋智能科技在智能硬件方面、區(qū)塊鏈應(yīng)用方面持續(xù)投入關(guān)注及創(chuàng)新。