Linux Server Start

704
-1

Published on

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

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
704
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • 现场 Linux 演示
  • 图片可点击
  • 现场 Linux 演示
  • 现场 Linux 演示
  • 拿到了主机,获取了 IP ,上架,域名设置,虚拟主机
  • 现场演示 mysqldump
  • tomcat 别忘记删 manager, 现场演示 GlassFish 的配置
  • 现场演示配置
  • 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

    ×