請至微軟下載修正程式
https://support.microsoft.com/zh-tw/kb/2488238
2016年2月1日 星期一
2016年1月3日 星期日
關閉Apache2 目錄瀏覽及導引
1.只要刪除
/etc/apache2/sites-available/default 中的 Indexes 來停用目錄列表之功能
1 NameVirtualHost *
2 <VirtualHost *>
3 ServerAdmin webmaster@localhost
4 DocumentRoot /var/www/
5 <Directory />
6 Options FollowSymLinks
7 AllowOverride None
8 </Directory>
9 <Directory /var/www/>
10 Options Indexes FollowSymLinks MultiViews
11 AllowOverride None
12 Order allow,deny
13 allow from all
14 # This directive allows us to have apache2's default start page
15 # in /apache2-default/, but still have / go to the right place
16 #RedirectMatch ^/$ /apache2-default/
17 </Directory>
2.將錯誤的流量轉移至首頁
/etc/apache2/sites-available/default 中的 Indexes 來停用目錄列表之功能
1 NameVirtualHost *
2 <VirtualHost *>
3 ServerAdmin webmaster@localhost
4 DocumentRoot /var/www/
5 <Directory />
6 Options FollowSymLinks
7 AllowOverride None
8 </Directory>
9 <Directory /var/www/>
10 Options Indexes FollowSymLinks MultiViews
11 AllowOverride None
12 Order allow,deny
13 allow from all
14 # This directive allows us to have apache2's default start page
15 # in /apache2-default/, but still have / go to the right place
16 #RedirectMatch ^/$ /apache2-default/
17 </Directory>
2.將錯誤的流量轉移至首頁
- 網站轉到指定頁面,在網站根目錄增加「.htaccess」檔案,若在其他目錄,就必須在各目錄建立「.htaccess」檔案。
- 將錯誤訊息403/404的訪客流量導引至首頁,也可以引導到指定網址。
ErrorDocument 403 http://OOO.OOO.tw/
ErrorDocument 404 http://OOO.OOO.tw/ - 檔案.htaccess設定完成後,只有根目錄的錯誤訊息會被轉址,其它子目錄並被轉址,因此還要將apache2.conf裡面的AllowOverride參數做設定。
<Directory "/var/www">
..........
AllowOverride None
......
</Directory>
改成
<Directory /var/www">
.........
AllowOverride All
..........
</Directory> - 設定完成後,要重新啟動apache即可。
2015年12月29日 星期二
APACHE2 性能調教
提升效能限制,可以提高成以下設定:
<IfModule prefork.c>
# number of server processes to start
# http://httpd.apache.org/docs/2.2/mod/mpm_common.html#startservers
StartServers 128
# minimum number of server processes which are kept spare
# http://httpd.apache.org/docs/2.2/mod/prefork.html#minspareservers
MinSpareServers 16
# maximum number of server processes which are kept spare
# http://httpd.apache.org/docs/2.2/mod/prefork.html#maxspareservers
MaxSpareServers 64
# highest possible MaxClients setting for the lifetime of the Apache process.
# http://httpd.apache.org/docs/2.2/mod/mpm_common.html#serverlimit
ServerLimit 2048
# maximum number of server processes allowed to start
# http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxclients
MaxClients 2048
# maximum number of requests a server process serves
# http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxrequestsperchild
MaxRequestsPerChild 10000
</IfModule>
重啟 apache 請先 stop 再 start。
出處文章
http://mepopedia.com/forum/read.php?146,419
2015年11月5日 星期四
新裝字型無法顯現在應用程式
1.字型安裝方法開啟 [控制台] 中的 [字型]。 在 [檔案] 功能表上,按一下 [安裝新字型]。 在 [磁碟機] 上,按一下想要的磁碟機。 在 [資料夾] 上,連按兩下包含想要新增的字型之資料夾。在 [字型清單] 上,按一下要新增的字型,再按 [確定]。
2.把 c:\windows\systen32\FNTCACHE.DAT砍掉再重新開機
2.把 c:\windows\systen32\FNTCACHE.DAT砍掉再重新開機
2015年6月4日 星期四
Synology 空間升級方式
環境說明:
原是2BAY 兩顆2TB硬碟做RAID 1 。
升級更換方式:
1.準備兩顆 4TB以上硬碟。
2.將其中一顆原2TB硬碟熱抽拔起,系統會出現告警聲。
3.更換新硬碟後,並設定修復動作後讓它同步。
4.等同步完成後,再將第2顆舊的2TB熱抽拔除並更換。
5.再等它同步完成後,它就會自動擴增空間動作(顯示新增硬碟)即可完成升級空間!
原是2BAY 兩顆2TB硬碟做RAID 1 。
升級更換方式:
1.準備兩顆 4TB以上硬碟。
2.將其中一顆原2TB硬碟熱抽拔起,系統會出現告警聲。
3.更換新硬碟後,並設定修復動作後讓它同步。
4.等同步完成後,再將第2顆舊的2TB熱抽拔除並更換。
5.再等它同步完成後,它就會自動擴增空間動作(顯示新增硬碟)即可完成升級空間!
ORACLE 出現 TNS:沒有監聽器
ORA-12541:TNS:沒有監聽器
原因: 無法啟動監聽器或者監聽器損壞,則使用「Net8 Configuration Assistant」工具嚮導之「監聽程式配置」增加一個監聽器即可(在設定之前將監聽器先刪除!)
2015年5月26日 星期二
訂閱:
文章 (Atom)