Linux 代理设置

apt proxy

vim /etc/apt/apt.conf
Acquire::http::proxy "http://10.48.127.169:8080/";  
Acquire::ftp::proxy "ftp://10.48.127.169:8080/";  
Acquire::https::proxy "https://10.48.127.169:8080/"; 

当前用户生效

vim  ~/.bashrc
export http_proxy=http://10.48.127.169:8080/
export https_proxy=http://10.48.127.169:8080/

全局配置

vim /etc/profile
export http_proxy=http://10.48.127.169:8080
export https_proxy=http://10.48.127.169:8080

 配置DNS

search chotim.com
nameserver 192.168.2.2

 安装SSH

apt-get install openssh-server
ps -e |grep ssh
/etc/init.d/ssh start
#或
service ssh start
service ssh stop

添加用户

useradd username

修改密码

passwd root

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。