ec2 instance environment to build a common part.

Creating a user?

1.1 Supervisor Administrator
 / * 

the need for ordinary users and administrators in both roles. 
Switch to the highest authority who root user of the system. 
su sudo 


groupadd Supervisor 



echo "Supervisor:. password set up their own" | chpasswd 


    edit user documentation 
vimsudo 

    increase in the administrator user. 
ALL = Supervisor (ALL) ALL 
* /

 

 

 Photo 2

 

 

 

 

/ * 
1.2 
OHS ordinary user 
    
groupadd OHS 
useradd -s / bin / bash -g OHS password echo "ohs: Password" | chpasswd After you create can su ohs switch users launch with Exit osh @ 123 purpose? Ordinary users to run applications that require administrator privileges to use Supervisor
* /

 

 

 

 

Two assembling conda? / *


What conda that? conda is a package, and dependent on environmental management tool for languages such as: Python, R, Scala, Java , Javascript, C / C ++, FORTRAN
 

    1 切换用户    su supervisor   需要使用管理员权限
su supervisor

    2 更新系统命令?
sudo yum update -y

    3 安装 wget 和 svn。
sudo yum -y install wget subversion

    4 安装conda
sudo wget https://repo.continuum.io/archive/Anaconda3-5.3.0-Linux-x86_64.sh

    5 修改文件所有者,文件权限, 移动到应用用户的根目录
sudo chown -R ohs:ohs  Anaconda3-5.3.0-Linux-x86_64.sh    

sudo chmod 755 Anaconda3-5.3.0-Linux-x86_64.sh    


        注意,你在哪个位置下载的Anaconda3-5.3.0-Linux-x86_64.sh  
        就在那个位置下将Anaconda3-5.3.0-Linux-x86_64.sh文件。
        移动到   /home/ohs/Anaconda3-5.3.0-Linux-x86_64.sh     这个目录下面。

        可以通过 ll 命令查看一下。

sudo mv /home/supervisor/Anaconda3-5.3.0-Linux-x86_64.sh /home/ohs/Anaconda3-5.3.0-Linux-x86_64.sh     

    6 切换ohs用户运行conda安装文件 

        注意是在  ~  目录下进行安装。anaconda。

        运行程序!
./Anaconda3-5.3.0-Linux-x86_64.sh    

回车 yes  一路安装

        yes

        安在默认目录。

        yes



    7 设置conda 环境变量

    这两个命令都是在 ~ 这个目录下进行安装的。

echo 'export PATH="~/anaconda3/bin:$PATH"' >> ~/.bashrc    

source ~/.bashrc    

    8 查看conda 是否成功。
      conda info -e


在跳板机上安装测试,能否成功安装。

redis 的下载地址?
     https://www.7down.com/soft/283401.html


mysql的地址?
    http://www.formysql.com/xiazai.html

大象数据库下载地址
    https://www.postgresql.org/ftp/source/v11.0/

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/ZXF6/p/12050710.html