zoukankan      html  css  js  c++  java
  • linux_base_commond_two

    1.linux privilege commond

    a.throught ll commond  can get follow picture

         

    d  directory     -  file    l link ,  after nine number is  three numbers a group  

     a.first group is user(属主) privileges  b. second  group is group(属组) privileges c.third group is other privileges

    r  read privilege 4   w writer privilege  2   x expression executalbe 1

    b.modify privilege  

    chmod  u=rwx,  g=rw,  o=r  a.txt

    chmod  764 a.txt

    2.install soft commond

    a.install JDK  

    NOTE:soft commond with rpm is equal to windows soft assisantor

    1) look up current linux system whether or not installed JDK

    rpm -qa |grep java

    2)uninstalling jdk soft from one look up

    rpm -e --nodeps unstall_soft_name

    3)upload JDK to linux through SSH soft

    4)decompression JDK soft

      tar –xvf jdk-7u71-linux-i586.tar.gz –C /usr/local

    5)config JDK environment variable,open /etc/profile  and add following content

    #set java environment

    JAVA_HOME=/usr/local/jdk1.7.0_71

    CLASSPATH=.:$JAVA_HOME/lib.tools.jar

    PATH=$JAVA_HOME/bin:$PATH

    export JAVA_HOME CLASSPATH PATH

    6)reflush  /etc/profile

      source /etc/profile

    b.installed  MYSQL

    1.look up centos with MYSQL

    rpm -qa | grep mysql

    2.unstall mysql

    3.upload mysql to linux

    4.decompression  mysql

    tar -xvf MySQL-5.6.22-1.el6.i686.rpm-bundle.tar -C /usr/local/mysql

    5.installing mysql  on  /usr/local/mysql  directory

    install server-side:rpm -ivh MySQL-server-5.6.22-1.el6.i686.rpm

    install client-side:rpm -ivh MySQL-client-5.6.22-1.el6.i686.rpm

    6.startup mysql

    service mysql start

    7.link mysql services into system services  and set start with boot

    join system services:chkconfing --add  mysql

    auto start :chkconfig mysql on

    8.login mysql

    installed mysql will generate a random password in /root/.mysql_secret

    mysql -u root -p

    9.modify mysql password 

    set password=password('root')

    10.started remote login

    in default situation ,mysql isn't support to remote login,so you need set it. enabling remote login.

    login mysql that you input follow command

    grant all privileges on *.* to 'root' @'%' identified by 'root';

    flush privileges;

    11.open access ports 3306

    /sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT

    /etc/rc.d/init.d/iptables save ---(keep firewall all the time)

    c.installed Tomcat

    1.upload tomcat into linux

    2.decompression tomcat into /usr/local

    3.open ports 8080

    /sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT  

     

     

    /etc/rc.d/init.d/iptables save

    4.launch an close tomcat

    in the bin directory: ./startup.sh

    in the bin drecrory: ./shutdown.sh

     

     

     

     

          

     

      

        

  • 相关阅读:
    Color Length UVA
    从一个n位数中选出m位按顺序组成新数并使其最大 || Erasing and Winning UVA
    Bits Equalizer UVA
    Party Games UVA
    笔记 树状数组--区间查询+区间修改
    算法竞赛入门经典 笔记(1)
    Database UVA
    set有关的函数的用法(The SetStack Computer UVA
    ndk学习之C语言基础复习----结构体、共用体与C++开端
    ndk学习之C语言基础复习----基本数据类型、数组
  • 原文地址:https://www.cnblogs.com/yjhlsbnf/p/7667645.html
Copyright © 2011-2022 走看看