阿里云服务器安装JAVA环境

2021-06-21  本文已影响0人  程序员大春
yum install java-1.8.0-openjdk*
yum install nodejs.x86_64
npm i cnpm -g
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global
adduser wanchun
passwd wanchun
# 添加sodu权限
sed -i '/root[^A]*ALL=(ALL)/a wanchun ALL=(ALL) NOPASSWD:ALL' /etc/sudoers
# 禁用ROOT登陆
sed -i 's/PermitRootLogin[a-zA-Z]*yes/PermitRootLogin no/g' /etc/ssh/sshd_config
systemctl restart sshd.service
上一篇 下一篇

猜你喜欢

热点阅读