Top Banner
Linux Server Start (Cent O S) related use in project deployments
14

Linux Server Start

Sep 03, 2014

Download

Documents

Gavin Quan

给team新人做的一次入门分享
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Linux Server Start

Linux Server Start (Cent OS)

related use in project deployments

Page 2: Linux Server Start

Agenda

• Common Command• Config IP• Touch Server• Domain Related• JDK• DataBase(Mysql)• Web Container( Tomcat+GlassFish)• Apache & Nginx• NTP(Network Time Procotol)• Auto Start & Firewall• .

Page 3: Linux Server Start

Common Command

• cat /proc/version(cpuinfo,meminfo)• cp /opt/test.txt /opt/test/• find / -name httpd.conf• ps aux|grep java• ls -al• rm -rf ...• vi/vim• top• scp (remote copy)• man

Page 5: Linux Server Start

Config IP

• /etc/sysconfig/network-scripts/ifcfg-device

• /etc/resolve.conf

• /etc/hosts

• /etc/init.d/network start/restart

• Linux Network Configuration

Page 6: Linux Server Start

Touch Server

• VNCServer 配置及 VNCView的使用• SSH - putty的使用• FileZilla

Page 7: Linux Server Start

Domain Related

• DNS Doman -> IP

• Hosting

Page 9: Linux Server Start

DataBase(Mysql)

• rpm -ivh MySQL-server-5.0.16-0.i386.rpm

• grant all privileges on *.* to root@"%" identified by 'passwd'

• mysqldump -u root -p renrendai > /opt/renrendai.sql

• mysql -u root -p renrendai < renrendai.sql

• mysql 8 hours problems

• MySQL on Linux Tutorial

Page 10: Linux Server Start

Web Container( Tomcat+GlassFish)• tar -zxvf apache-tomcat-6.0.29.tar.gz

• unzip apache-tomcat-6.0.29.zip

• http://dlc.sun.com.edgesuite.net/glassfish/v3/release/

• ./bin asadmin start-domain domain1

• ./bin asadmin stop-domain domain1

Page 11: Linux Server Start

Apache & Nginx

• apche config

• nginx config

Page 12: Linux Server Start

NTP

• Network Time Protocol( NTP)• ntpdate www.ntp.org

• date -s 20061010

Page 13: Linux Server Start

Auto Start & Firewall

• tomcat auto start after server restart

• /etc/init.d/iptables start/stop

• /etc/sysconfig/iptables

Page 14: Linux Server Start

Thanks