文章列表
server 对于使用ubuntu server版的朋友,可能就要适应英文环境了,面对一个纯英文的文本界面吧!如果安装过程中选择了中文界面,则ubuntu会自动将安装够的系统语言配置为中文,但是没有安装汉字系统,汉字是无法显示的,只能显示乱码。
我们需要修改配置文件/etc/default/locale 中文设置为:
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh"
修改为:
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
重启之后就好了~
...
1. 修改 root 密码
#如果无法修改密码需要执行以下命令
sudo mount -rw -o remount /
sudo passwd root
2. 以其他账户登录,通过 sudo nano 修改 /etc/ssh/sshd_config :
xxx@ubuntu14:~$ su - root
Password:
root@ubuntu14:~# vi /etc/ssh/sshd_config
3. 注释掉 #PermitRootLogin without-password,添加 PermitRootLogin ye
# Authentication:
LoginGraceTim ...
初始化配置
C代码 收藏代码
#配置使用git仓库的人员姓名
git config --global user.name "Your Name Comes Here"
#配置使用git仓库的人员email
git config --global user.email you@yourdomain.example.com
#配置到缓存 默认15分钟
git config --global credential.helper cache
#修改缓存时间
git config --global credential.helper ' ...