1.Ubuntu下JDK环境配置

1.配置JDK环境变量本身不难,可是自己手贱,把原本的文件删掉了点内容,结果运行肯定不成功了,找来原本的/etc/profile文件修改回原态,问题解决

附录:/etc/profile

# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "$PS1" ]; then
if [ "$BASH" ] && [ "$BASH" != "/bin/sh" ]; then
# The file bash.bashrc already sets the default PS1.
# PS1='\h:\w\$ '
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
fi
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
# The default umask is now handled by pam_umask.
# See pam_umask(8) and /etc/login.defs.
if [ -d /etc/profile.d ]; then
for i in /etc/profile.d/*.sh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi

TIP:Shell的语法if语句用fi表示结束.

另外,初步学习了VIM的使用.

猜你喜欢

转载自www.cnblogs.com/niconotine/p/10846610.html