Tagged: CentOS7 Toggle Comment Threads | 快速鍵

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

    how to remove csf firewall 

    cd /etc/csf
    sh uninstall.sh

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

    [CentOS7]設定PPPoE撥接功能 

    ip addr <=== 看ip

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

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

    [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   

    [CentOS7]nano安裝 

    yum -y install nano

     
  • starway 5:14 pm on July 2, 2017 固定鏈結 | 回應
    Tags: CentOS7   

    [CentOS7]啟用網卡 

    若沒特別設定 CentOS7預設裝好網卡是沒有啟動的
    要啟動網卡先去修改/etc/sysconfig/network-scripts

    1. vi ifcfg-enp2s0(可能會有不同名稱,通常會是ifcfg-enxxxx)

    更改以下內容
    BOOTPROTO=none(改成固定IP)
    IPV6INIT=no(不使用IPv6)
    ONBOOT=yes(開機時啟動網卡)
    IPADDR=x.x.x.x
    NETMASK=255.255.255.0
    GATEWAY=x.x.x.254
    DNS1=8.8.8.8

    #systemctl restart network

    指定對外網卡方式

    1. vi /etc/sysconfig/network

    加入GATEWAYDEV=eth0 (你要對外的那一張網卡)
    這是將默認gateway設定用對外網卡

    #systemctl restart network

     
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
取消