1.概述
一般情况下,我们会用ubuntu作为机器的运行环境。以下将以此为基础,简单总结一下环境部署的步骤。
2.新建用户
拿到root账号密码后,新建一个新账号。
adduser –home /home/smart –shell /bin/bash smart
一般情况下使用非root账号进行系统管理
3.配置账号权限
设置smart无密码使用sudo(强调,只是为了开发阶段方便)
root账号下,vi /etc/sudoers
在root ALL=(ALL:ALL) ALL下方增加
syedu ALL=(ALL) NOPASSWD: NOPASSWD: ALL
4.基础工具(git,maven,openjdk-7-jdk,tomcat7)
sudo apt-get update
sudo apt-get install git
sudo apt-get install maven
sudo apt-get install openjdk-7-jdk
sudo apt-get install tomcat7
5.添加云盾及云监控