Recent Updates Toggle Comment Threads | 快速鍵

  • starway 11:51 am on November 13, 2017 固定鏈結 | 回應  

    經緯度距離相關網站

    http://www.bijishequ.com/detail/256788?p=
    http://www.cnblogs.com/mgbert/p/4146538.html
    http://blog.csdn.net/liuxiaoshuang002/article/details/71122153
    https://www.wizzer.cn/archives/2254
    http://smallpoint-program.blogspot.tw/2014/12/php.html

    廣告
     
  • starway 9:54 pm on September 22, 2017 固定鏈結 | 回應
    Tags:   

    roundcube 連線到 imap 伺服器失敗 

    nano /etc/dovecot/dovecot.conf

    Add the following:
    namespace inbox {
    inbox = yes
    }

     
  • starway 7:24 am on July 30, 2017 固定鏈結 | 回應  

    Secure PhpMyAdmin 

    https://forum.vestacp.com/viewtopic.php?t=5271

     
  • starway 7:47 am on July 28, 2017 固定鏈結 | 回應
    Tags:   

    how to remove csf firewall 

    cd /etc/csf
    sh uninstall.sh

     
  • starway 7:05 pm on July 3, 2017 固定鏈結 | 回應
    Tags:   

    log size 大小 

    cd /etc/logrotate.d

    nano nginx

    增加SIZE

    size 10M

     
  • starway 2:39 pm on July 3, 2017 固定鏈結 | 回應
    Tags:   

    [HOWTO] Recompile NGINX with OpenSSL 1.0.2+ for HTTP/2 via ALPN on Debian 8 Topic is solved 

    特別注意:

    每個版本 nginx 搭配 openssl
    會有成功與失敗 不同的結果
    要注意

    ===========================================================

    參考文件:

    http://hg.nginx.org/njs/archive/njs-63d7430291f2.zip

    ===========================================================

    nginx -V

    yum install gc gcc gcc-c++ pcre-devel zlib-devel make wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel gperftools gperftools-devel libatomic_ops-devel perl-ExtUtils-Embed -y

    cd /usr/local/src/

    wget https://www.openssl.org/source/openssl-1.1.0e.tar.gz

    tar zxf openssl-1.1.0e.tar.gz

    wget https://nginx.org/download/nginx-1.12.0.tar.gz

    tar zxf nginx-1.12.0.tar.gz

    cd nginx-1.12.0

    service nginx stop

    ./configure –prefix=/etc/nginx –sbin-path=/usr/sbin/nginx –modules-path=/usr/lib64/nginx/modules –conf-path=/etc/nginx/nginx.conf –error-log-path=/var/log/nginx/error.log –http-log-path=/var/log/nginx/access.log –pid-path=/var/run/nginx.pid –lock-path=/var/run/nginx.lock –http-client-body-temp-path=/var/cache/nginx/client_temp –http-proxy-temp-path=/var/cache/nginx/proxy_temp –http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp –http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp –http-scgi-temp-path=/var/cache/nginx/scgi_temp –user=nginx –group=nginx –with-compat –with-file-aio –with-threads –with-http_addition_module –with-http_auth_request_module –with-http_dav_module –with-http_flv_module –with-http_gunzip_module –with-http_gzip_static_module –with-http_mp4_module –with-http_random_index_module –with-http_realip_module –with-http_secure_link_module –with-http_slice_module –with-http_ssl_module –with-http_stub_status_module –with-http_sub_module –with-http_v2_module –with-mail –with-mail_ssl_module –with-stream –with-stream_realip_module –with-stream_ssl_module –with-stream_ssl_preread_module –with-cc-opt=’-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong –param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -fPIC’ –with-ld-opt=’-Wl,-z,relro -Wl,-z,now -pie’ –with-openssl=/usr/local/src/openssl-1.1.0e

    make & make install

    service nginx restart

    nginx -V

    ==============================================================
    最後修改樣板

    cd /usr/local/vesta/data/templates/web/nginx/

    nano force-https.stpl

    server {
    listen %ip%:%proxy_ssl_port%;
    改成
    server {
    listen %ip%:%proxy_ssl_port% http2;

    參考文件:
    https://forum.vestacp.com/viewtopic.php?f=11&t=13150&p=55968&hilit=http2#p55968

     
  • starway 11:03 am on July 3, 2017 固定鏈結 | 回應
    Tags:   

    vestacp 

    文件 https://vestacp.com/docs/
    樣板路徑 /usr/local/vesta/data/templates/web/nginx/

     
  • starway 10:17 am on July 3, 2017 固定鏈結 | 回應
    Tags:   

    [CentOS7]設定PPPoE撥接功能 

    ip addr <=== 看ip

    http://blog.kevinlinul.idv.tw/?p=174

     
  • starway 9:27 am on July 3, 2017 固定鏈結 | 回應
    Tags:   

    [CentOS7]更新openssl 

    yum install gc gcc gcc-c++ pcre-devel zlib-devel make wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel gperftools gperftools-devel libatomic_ops-devel perl-ExtUtils-Embed -y
    yum install wget
    wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz
    tar -zxf openssl-1.0.2j.tar.gz -C /usr/local/
    cd /usr/local/openssl-1.0.2j
    ./config
    make
    make test
    make install
    mv /usr/bin/openssl /usr/bin/openssl_1.0.1e
    ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
    openssl version
    OpenSSL 1.0.2j 26 Sep 2016

     
  • starway 6:35 pm on July 2, 2017 固定鏈結 | 回應
    Tags:   

    [CentOS7]nano安裝 

    yum -y install nano

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
回應
e
編輯
o
Show/Hide comments
t
至頂
l
Go to login
h
Show/Hide help
shift + esc
取消