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
linux_base_commond_two的更多相关文章
随机推荐
- Java中equals和==之间的区别
今天在写表达式求值的时候,发现了equals和==||!=和!equals()之间是不一样的. 我就从网上搜了搜关于这方面的知识,然后在下面做一个总结: Java中有两类数据类型: 基本数据类型(Pr ...
- 【DDD】领域驱动设计实践 —— 业务建模实例(‘发布帖子’)
本文是基于上一篇‘业务建模小招数’的实践,后面的多篇博文类似.本文主要讲解‘发表帖子’场景的业务建模,包括:业务建模.业务模型.示例代码:示例代码会使用java编写,文末附有github地址.相比于& ...
- Swing-JCheckBox用法-入门
JCheckBox是Swing中的复选框.所谓复选框就是指,可以同时存在多个这样的控件,它们可以有多个处于被选中状态.对于每一个复选框而言,它只有选中和未选中两种状态. JCheckBox的常用方法如 ...
- 201521123019 《Java程序设计》第7周学习总结
1. 本章学习总结 2. 书面作业 Q1.ArrayList代码分析 1.1解释ArrayList的contains源代码 源代码如下: public boolean contains(Object ...
- 201521123019 《Java程序设计》第4周学习总结
1. 本章学习总结 2. 书面作业 Q1.注释的应用:使用类的注释与方法的注释为前面编写的类与方法进行注释,并在Eclipse中查看.(截图) Q2.面向对象设计(大作业1-非常重要) 2.1 讲故事 ...
- 201521123113 《Java程序设计》第2周学习总结
1.本周学习总结 学习了各种java数据类型以及各种运算符的使用 string类之所以好用是因为这是人可以看得懂的类型,操作简便 Scanner扫描器与标准输出输入用法上的不同,Scanner较标准输 ...
- 201521123051《Java程序设计》第十四周学习总结
1. 本周学习总结 1.1 以你喜欢的方式(思维导图或其他)归纳总结多数据库相关内容. 2. 书面作业 1. MySQL数据库基本操作 建立数据库,将自己的姓名.学号作为一条记录插入.(截图,需出现自 ...
- 前端基础之css
一.form表单 在form表单有两个重要的属性分别是: 关于表单两个属性: name: 作为发送server端的数据的键 ...
- 在Myeclipse中用Java语言操作mysql数据库
package OperateMysql; import java.sql.*; public class MysqlTest { public static void main(String[] a ...
- 【译】The Accidental DBA:SQL Server Backup
最近重新翻看The Accidental DBA,将SQL Server Backup部分稍作整理,方便以后查阅.此篇是Part 1Part 2:The Accidental DBA:Troubles ...