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
时间: 2024-10-01 21:59:09