Iskripthi seBash ukubuka izibalo zokusetshenziswa kwe-Apache RAM

 Sonke esilawula amaseva wewebhu sihlala silandela ithuluzi elisha noma i-tweak, kungaba ngolwazi oluthe xaxa mayelana nezinsizakusebenza zehadiwe noma ukunciphisa ukusetshenziswa 😀

Lapha ngizokushiyela umbhalo wokuthi bafaka isikhashana esedlule ku UCristalab ngokunembile lokhuUkukala ukusetshenziswa kwememori kwe-Apache, ngishiya isibonelo sedatha enikezayo:

==========================================================
Izinqubo ze-Apache nokusetshenziswa kwememori.
==========================================================
Ingqikithi yememori efakiwe: 4.09Gb
Imemori etholakalayo: 3.31Gb
Amaphesenti wamahhala: 80.00%
Ibha yesimo:
| +++++++++—————————– | |
==========================================================
Ukusetshenziswa kwamanje
==========================================================
Izinqubo zamanje: 28
Inkumbulo emaphakathi: 76Mb
Imemori enkulu: 80Mb
Inkumbulo isiyonke: 1.99Gb
==========================================================
Ukusetshenziswa okwenziwe
==========================================================
Okuhamba phambili ngasikhathi sinye: ukuxhumana okungaphezulu okungu-446
Okubi kakhulu ngesikhathi esifanayo: ukuxhumana okungaphezulu okungu-424
==========================================================

Njengoba ukwazi ukubona, isitshela inani lokuxhumeka kuma-Apache aqhubekayo, inani lememori elithathiwe, inkumbulo etholakalayo, njll.

Landa iskripthi se- .sh

Ingabe kuwusizo impela noma cha?

Ngisho nangeminye imizuzu embalwa nje singenza lolu lwazi lusifinyelele nge-imeyili, okungukuthi, sizoqala ngokufaka i-crontab yokuthi njalo isikhathi se-X (1 ihora ngokwesibonelo) senza lo mbiko, phrinta umbiko kufayela (stat.info ) bese usithumela ifayela nge-imeyili usebenzisa enye indlela esichazile lapha ngaphambili.

Kungase kube:

1. Faka phakathi i-crontab gijima njalo ngehora
2. Okuzokwenziwa kuzoba:

/root/./script.sh >> /root/stat.info && mail -s "Server's Stats" kzkggaara@mail.com < /root/stat.info

Ungakhohlwa ukunikeza ukukhipha izimvume (chmod + x apache-stats.sh) ukuze bakwazi ukuyiqhuba

Futhi i-voila, kufanele isebenze ngaphandle kwezinkinga 😀
Akunalutho ... esinye iseluleko engithemba ukuthi sizosiza 😉

Phendula ngokucaphuna


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-6, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   Algabe kusho

    Lo mbhalo ungaba wusizo olukhulu kimi, ngiyabonga ngokwabelana ngawo 🙂

  2.   RAW-Okuyisisekelo kusho

    OT: Sandy ungayeka ukukhala emakhoneni ukuthi akekho obekutshela ngokuthunyelwe .. xD

    Ngiyabonga ngokwabelana ngayo, kuhle kimi ukuthi ngibadlulisele kwabanye abantu okuzobalungela njengegilavu ​​..

  3.   UDavid valverde kusho

    Sijabule kakhulu ukuthola le ndatshana, siyibhale isikhathi eside futhi besilindele intshiseko ethe xaxa evela kubafundi beCristalab. Mhlawumbe bekungeyona indawo elungile ukuyithumela 🙂

    Uma unentshisekelo kuzindatshana zalolu hlobo, unganqikazi ukusho njalo futhi sizobe senza okokufundisa nezinsiza ku-bash.

    Ukubingelela okuvela eGrafitto!

    1.    KZKG ^ Gaara kusho

      Ngiyabonga kakhulu ngokusifunda, ngokuphawula nangokwabelana 🙂
      Uma ufuna ukwenza ezinye izikripthi ukwenza imisebenzi i-automate, ukuthola 'okuthile' ocabanga ukuthi kungathakazelisa noma kube wusizo ... ungangabazi ukuxhumana nami (kzkggaara [at] desdelinux [dot] net).

      Ngiyabonga futhi ngomsebenzi wakho

      Phendula ngokucaphuna

      1.    UDavid valverde kusho

        Ngenza umsebenzi omncane odinga ukuxhumana ne-database kusuka ku-bash nokunye. Kulula, kepha ngizokubeka kuhlelo lokufundisa, ake sibone ukuthi uyayithanda yini.

        Siyabonga ukwamukelwa!

  4.   I-Yagui kusho

    sawubona, mhlawumbe iskripthi asitholakali ?? Angikwazanga ukuyilayisha
    Uma ungayihlola, kungaba kuhle, nginentshisekelo
    imikhonzo, ngiyabonga ngokwabelana