Tag: centos

  • CentOS 7-Install Python 3, Django 2, uwsgi, nginx

    以root身份依序執行以下指令:

    yum -y install epel-release
    yum -y install python36 python36-tools python36-libs python36-devel wget gcc gcc-c++ zlib* openssl-devel unixODBC-devel
    yum -y install uwsgi
    
    wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
    python36 get-pip.py
    pip install django
    pip install django-pyodbc-azure
    
    firewall-cmd --zone=public --add-service=http --permanent
    systemctl enable nginx
  • CentOS 7-Install VMTools

    以root身份依序執行以下指令:

    yum groupinstall -y "Perl Support"
    
    yum install -y open-vm-tools
    
    yum install -y net-tools
    
    mkdir /mnt/cdrom
    
    mount /dev/cdrom /mnt/cdrom
    
    cd /mnt/cdrom
    
    cp VMwareTools* /tmp
    
    cd /tmp
    
    tar zxpf VMwareTools*
    
    cd VMware-tools-distrib
    
    ./VMware-install.pl
  • CentOS 7-Install OpenNMS

    以下為從無到有用,以最簡便方式建置環境的概略說明,詳細的安裝步驟可參考之後的文章。

    1. 到CentOS官網下載安裝用的映像檔,用最小的mini版即可
    2. 以最小安裝的配置安裝即可
    3. 設定網路環境及在防火牆開啟TCP 8980 port
    4. 參閱OpenNMS官網所提供的快速安裝指南,到github取得批次安裝檔。這裏在目前有一個很重要關鍵,就是不要使用官網所說的1.2版批次檔,而是要使用github上有修正安裝問題的master版。
    5. 安裝完批次檔並重新開機,即可以web的方式連到8980 port登入系統。(預設帳密皆為小寫admin)
  • CentOS 7-在vmware使用shared folder

    修改hgfs的shell script,讓他在kernel 3.10.x的linux中啟用完整功能。

    以下方法節錄自https://communities.vmware.com/message/2408919#2408919

    # cd <..>/vmware-tools-distrib/lib/modules/source

    # tar xf vmhgfs.tar

    # cd vmhgfs-only/shared

    apply change to compat_dcache.h (line 54 change version from 3, 11 to 3, 10)

    then tar up the new directory into vmhgfs.tar, and run the install.