2017-10-16 18:18:50 】 浏览:2662次 本网站的内容取自网络,仅供学习参考之用,绝无侵犯任何人知识产权之意。如有侵犯请您及时与本人取得联系,万分感谢。

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





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 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; 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 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: ./

in the bin drecrory: ./














】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Ubuntu linux系统下 su:出现: au.. 下一篇实现LAMP


验 证 码:
表  情:
内  容: