View
867
Download
0
Category
Preview:
DESCRIPTION
给team新人做的一次入门分享
Citation preview
Linux Server Start (Cent OS)
related use in project deployments
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• .
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
Config IP
• /etc/sysconfig/network-scripts/ifcfg-device
• /etc/resolve.conf
• /etc/hosts
• /etc/init.d/network start/restart
• Linux Network Configuration
Touch Server
• VNCServer 配置及 VNCView的使用• SSH - putty的使用• FileZilla
JDK
• get JDK - wget commond
• config JDK
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
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
Apache & Nginx
• apche config
• nginx config
NTP
• Network Time Protocol( NTP)• ntpdate www.ntp.org
• date -s 20061010
Auto Start & Firewall
• tomcat auto start after server restart
• /etc/init.d/iptables start/stop
• /etc/sysconfig/iptables
Thanks
Recommended