ansible2.7 python3.7 redhat6.8

python 下載安裝:

  1. ./configure --prefix=/ansible/python
  2. make
  3. make install
    報錯: ModuleNotFoundError: No module named '_ctypes'
    解決方法:
    下載安裝:libffi-devel-3.0.5-3.2.el6.x86_64.rpm
    重新編譯安裝python
  4. 爲python3建立軟連接: ln python3 python
  5. 在shell中指定環境變量PATH

ansible 下載安裝: https://releases.ansible.com/ansible/

  1. 安裝依賴包
  2. python setup.py inslall

ssh 免密碼驗證

  1. client: ssh-keygen -t rsa
  2. client: ssh-copy-id <user>@<server_ip>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章