Dism步驟
點選畫面左下角按滑鼠右鍵,選擇命令提示字元(系統管理員)身分執行,輸入以下指令
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /RestoreHealth
sfc /scannow
1. 點選畫面左下角按滑鼠右鍵,選擇命令提示字元(系統管理員)身分執行
2. 於命令提示字元中,輸入指令 sfc /scannow,按下Enter
3. 掃描後,確認是否有跳出檔案毀損之類的訊息。
4. 掃描後請重新啟動電腦測試能否正常使用
若還是有問題,嘗試看看透過控制台/帳戶/管理其他帳戶,新增一個帳戶使用,能否恢復正常?
2017年4月24日 星期一
2017年3月7日 星期二
NGINX 反向代理設定
編輯NGINX網站設定檔
vim /etc/nginx/sites-available/default
將設定加入最後面
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Fix the “It appears that your reverse proxy set up is broken" error.
proxy_pass http://Domain_or_IP;
proxy_read_timeout 90;
proxy_redirect http://Domain_or_IP https://Domain_or_IP;
}
vim /etc/nginx/sites-available/default
將設定加入最後面
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Fix the “It appears that your reverse proxy set up is broken" error.
proxy_pass http://Domain_or_IP;
proxy_read_timeout 90;
proxy_redirect http://Domain_or_IP https://Domain_or_IP;
}
最後重新啟動 nginx 服務:
sudo service nginx restart
NGINX SSL設定
安裝NGINX
sudo apt-get update
sudo apt-get install nginx
版本查詢
nginx -v
產生私鑰目錄
cd /etc/nginx/ssl
產生私鑰
openssl req -new -newkey rsa:2048 -nodes -keyout example_com.key -out example_com.csr
example_com.key 所產生的金鑰CODOMO將會連線驗證ngxinx SSL。
example_com.csr CSR文件。(貼於CODOMO才能產生網頁驗證檔如下圖)
下載憑證放置於/etc/nginx/ssl
憑證內容
根CA證書 - AddTrustExternalCARoot.crt
中級CA證書 - COMODORSAAddTrustCA.crt
中級CA證書 - COMODORSADomainValidationSecureServerCA.crt
PositiveSSL證書 - www_example_com.crt(自己建立的子網域名稱)
合併憑證檔
1.將上述crt文件合併成一個ssl-bundle.crt(順序很重要):
編輯NGINX網站設定檔
vim /etc/nginx/sites-available/default
增加以下名稱內容
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
ssl_certificate_key /etc/nginx/ssl/example_com.key;
ssl_certificate /etc/nginx/ssl/ssl-bundle.crt;
這樣即可完成憑證設定!
sudo apt-get update
sudo apt-get install nginx
版本查詢
nginx -v
產生私鑰目錄
cd /etc/nginx/ssl
產生私鑰
openssl req -new -newkey rsa:2048 -nodes -keyout example_com.key -out example_com.csr
example_com.key 所產生的金鑰CODOMO將會連線驗證ngxinx SSL。
example_com.csr CSR文件。(貼於CODOMO才能產生網頁驗證檔如下圖)
下載憑證放置於/etc/nginx/ssl
憑證內容
根CA證書 - AddTrustExternalCARoot.crt
中級CA證書 - COMODORSAAddTrustCA.crt
中級CA證書 - COMODORSADomainValidationSecureServerCA.crt
PositiveSSL證書 - www_example_com.crt(自己建立的子網域名稱)
合併憑證檔
1.將上述crt文件合併成一個ssl-bundle.crt(順序很重要):
cat www_example_com.crt COMODORSADomainValidationSecureServerCA.crt COMODORSAAddTrustCA.crt AddTrustExternalCARoot.crt> ssl-bundle.crt
編輯NGINX網站設定檔
vim /etc/nginx/sites-available/default
增加以下名稱內容
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
ssl_certificate_key /etc/nginx/ssl/example_com.key;
ssl_certificate /etc/nginx/ssl/ssl-bundle.crt;
最後重新啟動 nginx 服務:
sudo service nginx restart
這樣即可完成憑證設定!
2017年1月4日 星期三
AirDrop 找不到 iPhone / Mac ?
https://support.apple.com/zh-tw/HT203106
https://www.newmobilelife.com/2015/12/03/5-step-check-airdrop/
http://km.nicetypo.com/doc/7090786787135be8d32fa6624b892309
https://www.newmobilelife.com/2015/12/03/5-step-check-airdrop/
http://km.nicetypo.com/doc/7090786787135be8d32fa6624b892309
2016年12月26日 星期一
Windows 2016 OFFICE ISO DownLoad
https://heidoc.net/joomla/technology-science/microsoft/8-office-2016-direct-download-links
2016年12月20日 星期二
2016年11月28日 星期一
Ubuntu 16.04 phpmyadmin for php5 不正常時補裝元件
當裝完phpmyadmin後資料庫管理介面畫面空白請補裝以下元件
sudo apt-get install php-mbstring php7.0-mbstring php-gettext libapache2-mod-php7.0
請重啟apache2
sudo apt-get install php-mbstring php7.0-mbstring php-gettext libapache2-mod-php7.0
請重啟apache2
sudo systemctl restart apache2
如果還是看不到,請重新啟用 PHP mcrypt and mbstring 元件sudo phpenmod mcrypt
sudo phpenmod mbstring
請重啟apache2sudo systemctl restart apache2
訂閱:
文章 (Atom)