博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux_base_commond_two
阅读量:4876 次
发布时间:2019-06-11

本文共 2490 字,大约阅读时间需要 8 分钟。

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

 

 

 

 

 

      

 

  

 

    

 

转载于:https://www.cnblogs.com/yjhlsbnf/p/7667645.html

你可能感兴趣的文章
Rappid 消除试用版的弹出框
查看>>
精华 ionic入门之色彩、图标、边距和界面组件:列表
查看>>
顺变者昌
查看>>
Linux上vi(vim)编辑器使用教程
查看>>
promise intro2-用法
查看>>
极客范:如何使用 Cloud Insight 来监控闭路电视?
查看>>
Pytorch半精度浮点型网络训练问题
查看>>
Js操作Select大全
查看>>
java native method
查看>>
进入光云第一次做完项目的感受
查看>>
dns 视图
查看>>
[LeetCode] 合并K个排序链表
查看>>
leetcode--Balanced Binary Tree
查看>>
shell字符串处理
查看>>
js 数据绑定
查看>>
jsp的C标签一般使用方法以及js接收servlet中的对象及对象数字
查看>>
H5 简介
查看>>
window.frameElement的使用
查看>>
nl命令
查看>>
如何使用jQuery $.post() 方法实现前后台数据传递
查看>>