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

     

     

     

     

          

     

      

        

  • 相关阅读:
    C#代码也VB
    Flash/Flex学习笔记(9):ActionScript3.0与Javascript的相互调用
    原来Silverlight 4中是可以玩UDP的!
    Flash/Flex学习笔记(20):贝塞尔曲线
    Flash/Flex学习笔记(16):如何做自定义Loading加载其它swf
    AS3:让人叹为观止的Flash作品
    Flash/Flex学习笔记(10):FMS 3.5之Hello World!
    Flash/Flex学习笔记(12):FMS 3.5之如何做视频实时直播
    Flash/Flex学习笔记(28):动态文本的滚动控制
    Flash/Flex学习笔记(18):画线及三角函数的基本使用
  • 原文地址:https://www.cnblogs.com/yjhlsbnf/p/7667645.html
Copyright © 2011-2022 走看看