{"id":736,"date":"2013-03-16T16:35:48","date_gmt":"2013-03-16T14:35:48","guid":{"rendered":"http:\/\/www.koraykey.com\/?p=736"},"modified":"2013-05-20T21:44:28","modified_gmt":"2013-05-20T18:44:28","slug":"linux-isletim-sistemlerinde-tomcat-apache-uygulama-sunucusu-yapilandirmasi","status":"publish","type":"post","link":"https:\/\/www.koraykey.com\/?p=736","title":{"rendered":"Linux \u0130\u015fletim Sistemlerinde Tomcat Apache Uygulama Sunucusu Yap\u0131land\u0131rmas\u0131"},"content":{"rendered":"<p style=\"text-align: justify;\"><a href=\"http:\/\/www.koraykey.com\/wp-content\/uploads\/TomcatApache.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-790\" alt=\"TomcatApache\" src=\"http:\/\/www.koraykey.com\/wp-content\/uploads\/TomcatApache.jpg\" width=\"268\" height=\"129\" \/><\/a><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12px;\">Bu makalemizde Linux \u0130\u015fletim Sistemlerinde &#8220;Tomcat Apache Server&#8221; yap\u0131land\u0131rmas\u0131n\u0131 inceleyece\u011fiz.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12px;\"><strong>Tomcat Apache Server Nedir ?<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12px;\">Saf html kodlar\u0131ndan olu\u015fmu\u015f bir internet sayfas\u0131n\u0131, hi\u00e7bir yaz\u0131l\u0131ma ihtiya\u00e7 duymadan taray\u0131c\u0131larda g\u00f6r\u00fcnt\u00fclemek m\u00fcmk\u00fcnd\u00fcr. Ama php, asp, java gibi programlama dilleri ile olu\u015fturulmu\u015f sayfalar sunucu(server) dedi\u011fimiz yaz\u0131l\u0131mlara ihtiya\u00e7 duyarlar. \u0130\u015fte Tomcat de bir sunucu yaz\u0131l\u0131m\u0131d\u0131r. \u0130nternet programlamada b\u00fcy\u00fck \u00e7o\u011funlukla php dili kullan\u0131ld\u0131\u011f\u0131 i\u00e7in, apache sunucusu \u00e7o\u011fu ki\u015fi taraf\u0131ndan duyulmu\u015ftur. Tomcat de java sunucusudur. Java ile geli\u015ftirdi\u011finiz web uygulamalar\u0131n\u0131 g\u00f6r\u00fcnt\u00fcleyebilmek i\u00e7in bilgisayar\u0131n\u0131zda &#8220;Apache Tomcat&#8221; sunucu yap\u0131land\u0131rmas\u0131 yap\u0131lm\u0131\u015f olmal\u0131d\u0131r.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12px;\">1. \u0130\u015fletim Sistemimizde ihtiyac\u0131m\u0131z olan &#8220;Java&#8221; ve &#8220;Tomcat Apache&#8221; paketini kuruyoruz.<\/span><\/p>\n<pre class=\"brush: bash; gutter: false; first-line: 1\"><span style=\"font-family: courier new,courier; font-size: 12px;\"># yum install java\r\n# yum install tomcat6 tomcat6-webapps tomcat6-admin-webapps\r\n\r\n-- Java ve ba\u011f\u0131ml\u0131l\u0131larla beraber yakla\u015f\u0131k 26 adet paket kurulumu\r\nger\u00e7ekle\u015fecektir.<\/span><\/pre>\n<p style=\"text-align: justify;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12px;\">2. Sunucumuza kurulan &#8220;Tomcat Apache&#8221; servisini ba\u015flat\u0131yoruz ve sunucumuz yeniden ba\u015flad\u0131\u011f\u0131nda otomatik a\u00e7\u0131lmas\u0131 i\u00e7in gerekli ayarlar\u0131 yap\u0131yoruz.<\/span><\/p>\n<pre class=\"brush: bash; gutter: false; first-line: 1\"><span style=\"font-family: courier new,courier; font-size: 12px;\"># chkconfig tomcat6 on\r\n# service tomcat6 start\r\nStarting tomcat6: [  OK  ]\r\n\r\n-- Art\u0131k sunucumuza a\u015fa\u011f\u0131daki adresten eri\u015filebilir.\r\n\r\nhttp:\/\/sunucuadresi:8080\r\n\r\n-- Tabiki sunucumuzda firewall servisi aktif ise bu portun a\u00e7\u0131lmas\u0131\r\ngerekmektedir. E\u011fer firewall servisi kapal\u0131 ise herhangi bir ayar\r\nyapmam\u0131za gerek yok. Firewall i\u00e7in gerekli izinleri vermek i\u00e7in\r\na\u015fa\u011f\u0131daki komutu \u00e7al\u0131\u015ft\u0131r\u0131yoruz.\r\n\r\n# iptables -A INPUT -p tcp --dport 8080 -j ACCEPT<\/span><\/pre>\n<p style=\"text-align: justify;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12px;\">3. Sunucumuzda &#8220;Tomcat Apache&#8221; servisimizin ve kulland\u0131\u011f\u0131 portun durumunu sorguluyoruz.<\/span><\/p>\n<pre class=\"brush: bash; gutter: false; first-line: 1\"><span style=\"font-family: courier new,courier; font-size: 12px;\"># service tomcat6 status\r\ntomcat6 (pid 5311) is running...[  OK  ]\r\n\r\n# netstat -nlp | grep 8080\r\ntcp        0      0 :::8080    LISTEN      5311\/java<\/span><\/pre>\n<p style=\"text-align: justify;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12px;\">4. Sunucumuza kurdu\u011fumuz &#8220;Tomcat Apache&#8221; servisimizin yap\u0131land\u0131rma dosyalar\u0131 a\u015fa\u011f\u0131da yaz\u0131l\u0131 olan dizinlerde bulunmaktad\u0131r.<\/span><\/p>\n<pre class=\"brush: bash; gutter: false; first-line: 1\"><span style=\"font-family: courier new,courier; font-size: 12px;\">Tomcat Service Config\t: \/etc\/tomcat6 (main config directory)\r\nRelease Notes\t\t: \/usr\/share\/doc\/tomcat*\r\nBin Directory\t\t: \/usr\/share\/tomcat6\r\nWebapps\t\t\t: \/var\/lib\/tomcat6\/webapps\r\nLogs\t\t\t: \/var\/log\/tomcat6<\/span><\/pre>\n<p style=\"text-align: justify;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12px;\">5. Sunucumuzda bulunan &#8220;\/usr\/share\/tomcat6\/conf\/tomcat-users.xml&#8221; dosyas\u0131nda y\u00f6netici rol\u00fcm\u00fcz\u00fc ayarl\u0131yoruz ve bu sayede HTML Y\u00f6netim eri\u015fimini ayarlam\u0131\u015f oluyoruz.<\/span><\/p>\n<pre class=\"brush: bash; gutter: false; first-line: 1\"><span style=\"font-family: courier new,courier; font-size: 12px;\">-- Dosyam\u0131z\u0131 a\u00e7\u0131yoruz.\r\n# vim \/usr\/share\/tomcat6\/conf\/tomcat-users.xml\r\n\r\n-- \u0130lgili sat\u0131rlar\u0131 bularak a\u015fa\u011f\u0131daki sat\u0131rlar\u0131da ekliyoruz.\r\n\r\n&lt;role rolename=\"manager\"\/&gt;\r\n&lt;user name=\"tomcat\" password=\"parola100\" roles=\"manager\" \/&gt;\r\n\r\n-- Yap\u0131land\u0131rma sat\u0131rlar\u0131n\u0131 giriyoruz.\r\n\r\n-- Art\u0131k y\u00f6netim sayfam\u0131za a\u015fa\u011f\u0131daki adresten eri\u015febiliriz.\r\n\r\nhttp:\/\/sunucuadresi:8080\/manager\/html\r\n<\/span><\/pre>\n<p style=\"text-align: justify;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12px;\">6. De\u011fi\u015fikliklerin ge\u00e7erli olmas\u0131 i\u00e7in servisimizi yeniden ba\u015flat\u0131yoruz.<\/span><\/p>\n<pre class=\"brush: bash; gutter: false; first-line: 1\"><span style=\"font-family: courier new,courier; font-size: 12px;\"># service tomcat6 restart\r\nStopping tomcat6: [  OK  ]\r\nStarting tomcat6: [  OK  ]<\/span><\/pre>\n<p style=\"text-align: justify;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12px;\">7. Sunucumuz haz\u0131r a\u015fa\u011f\u0131daki dizine uygulamalar\u0131m\u0131z\u0131 y\u00fckleyerek \u00e7al\u0131\u015ft\u0131rabiliriz.<\/span><\/p>\n<pre class=\"brush: bash; gutter: false; first-line: 1\"><span style=\"font-family: courier new,courier; font-size: 12px;\">\/var\/lib\/tomcat6\/webapps\/<\/span><\/pre>\n<p style=\"text-align: justify;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12px;\">Linux\u00a0\u0130\u015fletim Sistemlerinde\u00a0&#8220;Tomcat Apache&#8221; yap\u0131land\u0131rmam\u0131z\u0131 tamamlad\u0131k art\u0131k kullan\u0131labilir. Burada uygulanan ad\u0131mlar Oracle Enterprise Linux 6.4 64 Bit \u00fczerinde denenmi\u015ftir. Ayn\u0131 zamanda di\u011fer Linux s\u00fcr\u00fcmleriyle uyumludur.\u00a0Sunucular\u0131m\u0131zda &#8220;http&#8221; web sunucu yap\u0131land\u0131rma ihtiyac\u0131m\u0131z olursa <a title=\"Linux \u0130\u015fletim Sistemlerinde HTTP ve FTP Server Yap\u0131land\u0131rmas\u0131\" href=\"http:\/\/www.koraykey.com\/?p=361\">&#8220;http sunucu yap\u0131land\u0131rmas\u0131&#8221;<\/a> makalemizden yararlanabilirsiniz.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: arial,helvetica,sans-serif; font-size: 12px;\">\u00a0Ba\u015fka bir makalede g\u00f6r\u00fc\u015fmek \u00fczere&#8230;<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bu makalemizde Linux \u0130\u015fletim Sistemlerinde &#8220;Tomcat Apache Server&#8221; yap\u0131land\u0131rmas\u0131n\u0131 inceleyece\u011fiz. Tomcat Apache Server Nedir ? Saf html kodlar\u0131ndan olu\u015fmu\u015f bir internet sayfas\u0131n\u0131, hi\u00e7bir yaz\u0131l\u0131ma ihtiya\u00e7 duymadan taray\u0131c\u0131larda g\u00f6r\u00fcnt\u00fclemek m\u00fcmk\u00fcnd\u00fcr. Ama php, asp, java gibi programlama dilleri ile olu\u015fturulmu\u015f sayfalar sunucu(server) &hellip; <a href=\"https:\/\/www.koraykey.com\/?p=736\">Okumaya devam et <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[21,290,20,19,67,367,64,65,66],"class_list":["post-736","post","type-post","status-publish","format-standard","hentry","category-unix-linux","tag-h-koray-gunduz","tag-halil-koray-gunduz","tag-koray-gunduz","tag-koraykey","tag-linux-tomcat-apache","tag-linux-web-server","tag-tomcat-apache","tag-tomcat-apache-kurulumu","tag-tomcat-apache-yapilandirmasi"],"_links":{"self":[{"href":"https:\/\/www.koraykey.com\/index.php?rest_route=\/wp\/v2\/posts\/736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.koraykey.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.koraykey.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.koraykey.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.koraykey.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=736"}],"version-history":[{"count":0,"href":"https:\/\/www.koraykey.com\/index.php?rest_route=\/wp\/v2\/posts\/736\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.koraykey.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.koraykey.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.koraykey.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}