码迷,mamicode.com
首页 > 系统相关 > 详细

Linux 代理设置

时间:2014-09-23 15:26:24      阅读:576      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   ar   div   sp   art   on   

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

 

Linux 代理设置

标签:style   blog   http   color   ar   div   sp   art   on   

原文地址:http://www.cnblogs.com/saintaxl/p/3988065.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!