Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Linux Server Start

993 views

Published on

给team新人做的一次入门分享

  • Be the first to comment

  • Be the first to like this

Linux Server Start

  1. 1. Linux Server Start (Cent OS) related use in project deployments
  2. 2. Agenda <ul><li>Common Command </li></ul><ul><li>Config IP </li></ul><ul><li>Touch Server </li></ul><ul><li>Domain Related </li></ul><ul><li>JDK </li></ul><ul><li>DataBase(Mysql) </li></ul><ul><li>Web Container ( Tomcat+GlassFish ) </li></ul><ul><li>Apache & Nginx </li></ul><ul><li>NTP(Network Time Procotol) </li></ul><ul><li>Auto Start & Firewall </li></ul><ul><li>. </li></ul>
  3. 3. Common Command <ul><li>cat /proc/version(cpuinfo,meminfo) </li></ul><ul><li>cp /opt/test.txt /opt/test/ </li></ul><ul><li>find / -name httpd.conf </li></ul><ul><li>ps aux|grep java </li></ul><ul><li>ls -al </li></ul><ul><li>rm -rf ... </li></ul><ul><li>vi/vim </li></ul><ul><li>top </li></ul><ul><li>scp (remote copy) </li></ul><ul><li>man </li></ul>
  4. 4. Common Command
  5. 5. Config IP <ul><li>/etc/sysconfig/network-scripts/ifcfg-device </li></ul><ul><li>/etc/resolve.conf </li></ul><ul><li>/etc/hosts </li></ul><ul><li>/etc/init.d/network start/restart </li></ul><ul><li>Linux Network Configuration </li></ul>
  6. 6. Touch Server <ul><li>VNCServer 配置及 VNCView 的使用 </li></ul><ul><li>SSH - putty 的使用 </li></ul><ul><li>FileZilla </li></ul>
  7. 7. Domain Related <ul><li>DNS Doman -> IP </li></ul><ul><li>Hosting </li></ul>
  8. 8. JDK <ul><li>get JDK - wget commond </li></ul><ul><li>config JDK </li></ul>
  9. 9. DataBase(Mysql) <ul><li>rpm -ivh MySQL-server-5.0.16-0.i386.rpm </li></ul><ul><li>grant all privileges on *.* to root@&quot;%&quot; identified by 'passwd' </li></ul><ul><li>mysqldump -u root -p renrendai > /opt/renrendai.sql </li></ul><ul><li>mysql -u root -p renrendai < renrendai.sql </li></ul><ul><li>mysql 8 hours problems </li></ul><ul><li>MySQL on Linux Tutorial </li></ul>
  10. 10. Web Container ( Tomcat+GlassFish ) <ul><li>tar -zxvf apache-tomcat-6.0.29.tar.gz </li></ul><ul><li>unzip apache-tomcat-6.0.29.zip </li></ul><ul><li>http://dlc.sun.com.edgesuite.net/glassfish/v3/release/ </li></ul><ul><li>./bin asadmin start-domain domain1 </li></ul><ul><li>./bin asadmin stop-domain domain1 </li></ul>
  11. 11. Apache & Nginx <ul><li>apche config </li></ul><ul><li>nginx config </li></ul>
  12. 12. NTP <ul><li>Network Time Protocol(NTP) </li></ul><ul><li>ntpdate www.ntp.org </li></ul><ul><li>date -s 20061010 </li></ul>
  13. 13. Auto Start & Firewall <ul><li>tomcat auto start after server restart </li></ul><ul><li>/etc/init.d/iptables start/stop </li></ul><ul><li>/etc/sysconfig/iptables </li></ul>
  14. 14. Thanks

×