Linux Tools Installation Configuration

Source: Internet
Author: User
Tags gpg

1. Modify host name/Add alias access

Modify the hostname in/etc/sysconfig/network
Networking=yes
Hostname=dlserver01;

Modify the/etc/hosts file

172.16.50.123 Dlserver01 # Added by NetworkManager
127.0.0.1 localhost.localdomain localhost
:: 1 Dlserver01 localhost6.localdomain6 Localhost6
172.16.50.124 Dlserver02
172.16.50.125 DLDB01

2. Time setting

Date-r
Date-s 20140915
Date-s 15:57:30

3.JDK

3.1.

/etc/profile
Export java_home=/usr/lib/jvm/java-7
Export JRE_HOME=${JAVA_HOME}/JRE
Export Classpath=.:${java_home}/lib:${jre_home}/lib
Export Path=${java_home}/bin: $PATH

3.2.

chmod 777 Bin

SOURCE ~/.BASHRC
3.3.
Java-version

4. Tomcat
Tar zxvf apache-tomcat-6.0.39.tar.gz
4.1, Server.xml 8080--8081

4.2, Tomcat-users.xml

<role rolename= "Tomcat"/>
<role rolename= "Role1"/>
<role rolename= "Manager"/>
<role rolename= "admin"/>
<user username= "Tomcat" password= "Tomcat" roles= "Tomcat"/>
<user username= "Both" password= "Tomcat" roles= "Tomcat,role1"/>
<user username= "Role1" password= "Tomcat" roles= "Role1"/>
<user username= "admin" password= "admin" roles= "manager"/>

4.2. Configure boot automatically
Vi/etc/rc.local

Export java_home=/usr/lib/jvm/java-7
/dinglicom/tomcat/bin/startup.sh

4.3, other machines can not access, open 8080 port or shut down the firewall

4.3.1, open port 8080.
Write the iptables file under/ect/sysconfig
Join a row
-A rh-firewall-1-input–m state new–m tcp–p tcp–dport 8080–j ACCEPT
4.3.2, shutting down the firewall
(1) Close immediate effect, restart and then open
Service Iptables Stop
Same: Open service iptable start now
(2) effective after reboot
Chkconfig iptables off
Similarly: Turn on chkconfig service on after reboot

5. Yum

5.1, http://blog.itpub.net/25313300/viewspace-708509/

wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-cron-3.2.29-40.el6.centos.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm
wget http://mirrors.163.com/centos/6/os/x86_64/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

RPM-IVH python-iniparse-0.3.1-2.1.el6.noarch.rpm
RPM-IVH yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
RPM-IVH yum-cron-3.2.29-40.el6.centos.noarch.rpm RPM-IVH yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm

5.2. Update Repo file
Mv/etc/yum.repos.d/rhel-debuginfo.repo/etc/yum.repos.d/rhel-debuginfo.repo.repo.bak
Vi/etc/yum.repos.d/rhel-debuginfo.repo
The contents are:
[Base]
name=centos-$releasever-base
baseurl=http://mirrors.163.com/centos/6/os/$basearch/
Gpgcheck=1
Gpgkey=http://mirrors.163.com/centos/rpm-gpg-key-centos-6

#released Updates
[Updates]
name=centos-$releasever-updates
baseurl=http://mirrors.163.com/centos/6/updates/$basearch/
Gpgcheck=1
Gpgkey=http://mirrors.163.com/centos/rpm-gpg-key-centos-6

#packages used/produced in the build and not released
#[addons]
#name =centos-$releasever-addons
#baseurl =http://mirrors.163.com/centos/$releasever/addons/$basearch/
#gpgcheck =1
#gpgkey =http://mirrors.163.com/centos/rpm-gpg-key-centos-6
#additional packages that could be useful
[Extras]
name=centos-$releasever-extras
baseurl=http://mirrors.163.com/centos/6/extras/$basearch/
Gpgcheck=1
Gpgkey=http://mirrors.163.com/centos/rpm-gpg-key-centos-6
#additional packages that extend functionality of existing packages
[Centosplus]
name=centos-$releasever-plus
baseurl=http://mirrors.163.com/centos/6/centosplus/$basearch/
Gpgcheck=1
Enabled=0

6. mysql (install MySQL using yum under Linux)

1. Installation
See if you have installed:
Yum List installed mysql*
Rpm-qa | grep mysql*

To see if there are any installation packages:
Yum List mysql*

To install the MySQL client:
Yum install MySQL

To install the MySQL server side:
Yum Install Mysql-server
Yum Install Mysql-devel

2. Start && Stop

Database Character Set settings
MySQL config file/etc/my.cnf add Default-character-set=utf8

To start the MySQL service:
Service mysqld start or/etc/init.d/mysqld start
Stop it:
Service Mysqld Stop
2. Login

To create a root administrator:
Mysqladmin-u Root Password Zxc

Login:
Mysql-u Root-p Enter the password.
Forgot Password:
Service Mysqld Stop
Mysqld_safe--user=root--skip-grant-tables
Mysql-u Root
Use MySQL
Update user set Password=password ("New_pass") where user= "root";
Flush privileges;

3. Remote Access
Port number for open firewall
MySQL Add permission: The user table in the MySQL library has a new record of "%" and the user is "root".

4. Several important directories of Linux MySQL
Database directory
/var/lib/mysql/
Configuration file
/usr/share/mysql (mysql.server command and configuration file)
Related commands
/usr/bin (Mysqladmin mysqldump and other commands)
Startup scripts
/etc/rc.d/init.d/(startup script file for MySQL directory)

Linux Tools Installation Configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.