1. 程式人生 > >Linux下安裝python,ftp,Ubuntu和centos配置靜態ip以及下載地址

Linux下安裝python,ftp,Ubuntu和centos配置靜態ip以及下載地址

aliyun ubuntu16 span 界面 word yum rontab mce .html

一個服務器最多創建65535個端口
Ubuntu apt-get aliyun轉換
https://www.cnblogs.com/hcl1991/p/7894958.html
OpenSSL
https://baike.baidu.com/item/openssl/5454803?fr=aladdin
Hadoop學習
http://www.pansoso.com/zh/Hadoop%E6%9D%83%E5%A8%81%E6%8C%87%E5%8D%97.%E7%AC%AC4%E7%89%88%E4%B8%AD%E6%96%87%E9%AB%98%E6%B8%85PDF
crontab 詳細用法 定時任務
https://www.cnblogs.com/aminxu/p/5993769.html


下載安裝python步驟
先把python.tgz包拷貝到/root下
然後進入root執行以下
一、tar -xvf Python-3.5.6.tgz
解壓文件
705 ls
706 cd Python-3.5.6/
進入python文件
707 ls
708 vim README
查看readme文件裏的./configure
Make // make -j
make test
sudo make install內容
709 ls
710 ./configure
發現錯誤,需要apt-get install gcc,這時候用阿裏雲的更快捷,即通過以下方式
711 cp /etc/apt/sources.list /etc/apt/sources.list.bak


復制一份
712 ls
713 cat /etc/apt/
714 cd /etc/apt/
715 ls
716 vim sources.list
進行編輯,內容在網址裏
https://www.cnblogs.com/hcl1991/p/7894958.html
717 apt-get update
更新之後即可使用
718 apt-get install gcc
719 ./configure
配置文件需要返回python文件夾下
720 cd ../
721 ls
722 pwd
723 cd ~
724 ls
725 cd Python-3.5.6/
726 ls
依次運行
727 ./configure

728 make -j
需要安裝make
729 apt install make
730 make -j
731 whereis python
732 make install
安裝完成
733 make install
734 cd ~
735 whereis python
736 cd /usr/bin/
737 python3.5
738 ls -lh python3
739 ln -s python3.5 python
740 ls
741 ls -lh |grep python
742 ls -lh python
743 python
或者直接apt-get install python3

安裝ftp
先安裝vsftpd服務器
apt-get install vsftpd
然後配置vsftpd.conf文件
vi /etc/vsftpd.conf
其次檢查內容

可以直接在命令模式下輸入/anoy 回車進行查找

2.1anonymous_enable=no不允許匿名用戶登錄

2.2local_root=/home/test/ftp指定ftp上傳下載目錄
2.3local_enable=yes指定允許本機登錄
2.4chroot_list_enable=yes
chroot_list_file=/etc/vsftpd.chroot_list允許/etc/vsftpd.chroot_list文件中的用戶進行登錄ftp服務器
2.5write_enable=yes允許上傳文件到服務器

esc退出,shift+:切換到末行模式,wq(x)進行保存退出(q!強制不保存退出)
然後在/etc/vsftpd.chroot_list裏進行編輯
vi
/etc/vsftpd.chroot_list
寫入 test 保存
然後進入test用戶裏
su - test
創建文件夾
mkdir
ftp
以及 mkdir ftp/share
然後通過網關 netstat -anpt | grep 21可以進行查看
但是想要登錄ftp服務器則需要更改ftp權限
chmod a-w /home/test/ftp/
如果想要上傳下載文件則需要更改share文件夾的權限
chmod 777 -R /home/test/ftp/share
之後ftp IP 登錄即可或者在leapftp軟件上登錄也可
在軟件上可以直接點擊上傳下載
shell裏則可以用 put 文件

/etc/init.d/vsftpd restart
707 netstat -apt | grep 21
708 /etc/init.d/vsftpd restart
709 vim /etc/vsftpd.chroot_list
710 /etc/init.d/vsftpd restart
711 netstat -apt|grep 21
712 vi /etc/vsftpd.conf
713 vim /etc/vsftpd.chroot_list
714 netstat -apt|grep 21
715 ftp 192.168.0.235
716 ls -lh /home/test/ftp/
717 ls -lh /home/test/
718 chmod a-w /home/test/ftp/
719 ls -lh /home/test/
720 ftp 192.168.0.235
721 chmod 777 -R /home/test/ftp/share
722 chmod a-w /home/test/ftp/
723 ls -lh /home/test/
724 ls -lh /home/test/ftp/

ubuntu配置靜態ip

允許root直接登錄
vi /etc/ssh/sshd_config vi是進行編輯的意思
然後回車
註釋掉PermitRootLogin without-password 點擊i或者a進行編輯 shift+3進行註釋,esc鍵退出編輯,
O進行換行,shift加冒號是進行輸入命令,輸入set nu是顯示行數
增加PermitRootLogin yes
之後esc退出編輯shift+冒號輸入wq退出並保存,(q只退出有提醒,q!強制退出)
然後輸入/etc/init.d/ssh restart
進行重啟,
上面的兩個編輯和重啟命令,在shell裏的話則要先連接
輸入 ssh 192.168.0.ip地址
都要再之前加上sudo
之後再開一個shell就可以輸入
ssh [email protected]地址 進入root界面,不用加sudo了
ctr+d進行關閉
然後進行下面的編輯
vi /etc/network/interface
然後回車進行更改
auto enp0s3
iface enp0s3 inet static
address 192.168.0.217
netmask 255.255.255.0
gateway 192.168.0.252
dns-nameservers 114.114.114.114 1.1.1.1 //域名解析服務器

重啟應用配置
/etc/init.d/networking restart
然後用ifconfig進行查看(cmd裏是ipconfig),或者reboot重啟後進行查看

配置centos靜態ip ,按照文檔走
vi /etc/sysconfig/network-scripts/ifcfg-enp0s3

IPADDR=192.168.0.116 //IP地址信息
GATEWAY=192.168.0.252 //網關信息
netmask 255.255.255.0 //子網掩碼
ONBOOT=yes //是否系統啟動就應用
BOOTPROTO=static //IP靜態分配
DNS1=114.114.114.114 //域名服務器IP
DNS2=1.1.1.1

service network restart //重啟網卡
ping 163.com //測試連接域名是否正常

ifconfig沒有的話,百度查找
https://www.cnblogs.com/jtnote/p/6103754.html
輸入yum install net-tools
安裝vim 則用 yum install vim

卸載以及安裝jdk時在目錄下例如python,則先cd python然後make uninstall
安裝python
下載地址
https://www.python.org/downloads/release/python-365/
安裝地址
https://baijiahao.baidu.com/s?id=1606573927720991570&wfr=spider&for=pc

安裝jdk網址
http://www.cnblogs.com/lamp01/p/8932740.html
下載jdk網址
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
防火墻配置網址
https://www.cnblogs.com/moxiaoan/p/5683743.html
安裝Apache網址
https://www.cnblogs.com/xdouby/p/6406873.html


Ubuntu或者centos安裝Apache
nginx(性能高)和IIS和Apache三種服務器的區別,還有Tomcat服務器
網址
https://www.cnblogs.com/xdouby/p/6406873.html

CSDN,開源中國,開發者頭條;
操作系統:作用:管理計算機硬件和軟件的系統
計算機組成:運算器,控制器,存儲設備,輸入設備,輸出設備

大數據:大量、高速,多樣,低價值密度
wireshark抓包工具
Linux :,動態庫.so結尾,靜態庫.a結尾,多用戶操作系統,文件格式:Ext,Ext2-4

windows:動態庫dll開發用,靜態庫運行用,偽多用戶操作系統,文件格式:FAT,NTFS,exFAT
Linux:動態庫.so 靜態庫.a
Window:動態庫.dll 靜態庫.lib
centos7mini64版本
Ubuntu1604server64
對window的三個磁盤格式介紹fat,NTFS,exfat
https://jingyan.baidu.com/article/90895e0fc2880e64ec6b0bef.html
下載地址
centos下載地址:
網易鏡像:http://mirrors.163.com/centos/6/isos/
搜狐鏡像:http://mirrors.sohu.com/centos/6/isos/
ubuntu下載地址:
官網下載匯總信息:http://mirrors.zju.edu.cn/ubuntu-releases/16.04/
http://mirrors.zju.edu.cn/ubuntu-releases/16.04/ubuntu-16.04.5-server-amd64.iso
http://mirrors.zju.edu.cn/ubuntu-releases/16.04/ubuntu-16.04.5-server-i386.iso


springboot 學習themleaf網址
https://www.cnblogs.com/jiangbei/p/8462294.html

Linux下安裝python,ftp,Ubuntu和centos配置靜態ip以及下載地址