• 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

     

     

     

     

          

     

      

        

  • 相关阅读:
    BrowserSync,自动刷新,解放F5,去掉更新提示
    js获取手机系统语言
    块元素,行内元素,行内块区别
    原生js判断某个元素是否有指定的class名的几种方法
    如何实现调用console.log(‘good’.repeat(3))时输出goodgoodgood?
    数组如何去除重复数据,只保留一条
    Sentinel笔记-Flow流控规则
    sentinel笔记 NodeSelectorSlot,ClusterBuilderSlot
    Sentinel笔记--Slotchain
    Sentinel笔记-核心类
  • 原文地址:https://www.cnblogs.com/yjhlsbnf/p/7667645.html
Copyright © 2020-2023  润新知