如果網絡環境爲代理上網,首先進行代理設置,編輯/etc/environment,加入以下代理設置即可:
http_proxy="http://username:passwd@proxyhost:port"
https_proxy="https://username:passwd@proxyhost:port"
ftp_proxy="ftp://username:passwd@proxyhost:port"
1.爲Ubuntu安裝ssh
執行apt-get install openssh-server,安裝ssh服務器。
安裝完畢後執行ps -e | grep sshd命令,查看安裝是否成功。
2.ubuntu關閉防火牆
sudo ufw disable
3.在windows上下載putty,連接Ubuntu查看是否能夠成功。
4.在windows上下載pscp.exe,打開dos命令窗口,將目錄切換到pscp.exe目錄下。
執行pscp d:\software\hadoop\jdk-8u45-linux-i586.gz [email protected]:/home/czliuming/software
注:如果需要配置靜態IP或者配置雙網卡,需要在/proc/sys/net/ipv4/conf目錄下查看網卡設備名稱,編輯/etc/network/interfaces文件即可