IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

RedHat / CentOS / Fedora Discussion :

[FEDORA] optimiser server web


Sujet :

RedHat / CentOS / Fedora

  1. #1
    Membre à l'essai
    Inscrit en
    Octobre 2006
    Messages
    27
    Détails du profil
    Informations forums :
    Inscription : Octobre 2006
    Messages : 27
    Points : 12
    Points
    12
    Par défaut [FEDORA] optimiser server web
    Bonjour.
    J'essaie de monter FC6 en version serveur web. Je voudrais l'optimiser et enlever les démarrages automatiques des processus inutiles (interface graphique inclue). Je compte garder seulement les processus nécessaires (mysql, httpd, iptables ...).

    Je vous poste le résultat de mon ps aux, qq'un sait ce que je peux enlever sans perturber le bon fonctionnement du serveur.

    Merci d'avance.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    [root@localhost ~]# ps aux
    USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
    root         1  0.0  0.1   2032   640 ?        Ss   14:02   0:00 init [5]                                              
    root         2  0.0  0.0      0     0 ?        S    14:02   0:00 [migration/0]
    root         3  0.0  0.0      0     0 ?        SN   14:02   0:00 [ksoftirqd/0]
    root         4  0.0  0.0      0     0 ?        S    14:02   0:00 [watchdog/0]
    root         5  0.0  0.0      0     0 ?        S<   14:02   0:00 [events/0]
    root         6  0.0  0.0      0     0 ?        S<   14:02   0:00 [khelper]
    root         7  0.0  0.0      0     0 ?        S<   14:02   0:00 [kthread]
    root        10  0.0  0.0      0     0 ?        S<   14:02   0:00 [kblockd/0]
    root        11  0.0  0.0      0     0 ?        S<   14:02   0:00 [kacpid]
    root       115  0.0  0.0      0     0 ?        S<   14:02   0:00 [cqueue/0]
    root       118  0.0  0.0      0     0 ?        S<   14:02   0:00 [khubd]
    root       120  0.0  0.0      0     0 ?        S<   14:02   0:00 [kseriod]
    root       183  0.0  0.0      0     0 ?        S    14:02   0:00 [pdflush]
    root       184  0.0  0.0      0     0 ?        S    14:02   0:00 [pdflush]
    root       185  0.0  0.0      0     0 ?        S<   14:02   0:00 [kswapd0]
    root       186  0.0  0.0      0     0 ?        S<   14:02   0:00 [aio/0]
    root       339  0.0  0.0      0     0 ?        S<   14:02   0:00 [kpsmoused]
    root       363  0.0  0.0      0     0 ?        S<   14:02   0:00 [ata/0]
    root       364  0.0  0.0      0     0 ?        S<   14:02   0:00 [ata_aux]
    root       367  0.0  0.0      0     0 ?        S<   14:02   0:00 [scsi_eh_0]
    root       368  0.0  0.0      0     0 ?        S<   14:02   0:00 [scsi_eh_1]
    root       369  0.0  0.0      0     0 ?        S<   14:02   0:00 [scsi_eh_2]
    root       370  0.0  0.0      0     0 ?        S<   14:02   0:00 [scsi_eh_3]
    root       375  0.0  0.0      0     0 ?        S<   14:02   0:00 [kmirrord]
    root       382  0.0  0.0      0     0 ?        S<   14:02   0:00 [kjournald]
    root       403  0.0  0.0      0     0 ?        S<   14:02   0:00 [kauditd]
    root       429  0.0  0.1   2380   752 ?        S<s  14:02   0:00 /sbin/udevd -d
    root       793  0.0  0.0      0     0 ?        S<   14:02   0:00 [kedac]
    root      1368  0.0  0.0      0     0 ?        S<   14:02   0:00 [kmpathd/0]
    root      1391  0.0  0.0      0     0 ?        S<   14:02   0:00 [kjournald]
    root      1487  0.0  0.0      0     0 ?        S<   14:02   0:00 [kondemand/0]
    root      1784  0.0  0.1   1692   580 ?        Ss   14:03   0:00 syslogd -m 0
    root      1787  0.0  0.0   1640   396 ?        Ss   14:03   0:00 klogd -x
    rpc       1814  0.0  0.1   1776   556 ?        Ss   14:03   0:00 portmap
    root      1833  0.0  0.1   1884   808 ?        Ss   14:03   0:00 rpc.statd
    root      1862  0.0  0.1   4924   552 ?        Ss   14:03   0:00 rpc.idmapd
    dbus      1876  0.0  0.2   3272  1044 ?        Ss   14:03   0:01 dbus-daemon --system
    root      1885  0.0  0.1   2344   868 ?        Ss   14:03   0:00 hcid: processing events
    root      1889  0.0  0.0   1712   492 ?        Ss   14:03   0:00 /usr/sbin/sdpd
    root      1910  0.0  0.0      0     0 ?        S<   14:03   0:00 [krfcommd]
    root      1945  0.0  0.2  33180  1288 ?        Ssl  14:03   0:00 pcscd
    root      1964  0.0  0.0   1872   448 ?        Ss   14:03   0:00 /usr/bin/hidd --server
    root      1977  0.0  0.2   9040  1060 ?        Ssl  14:03   0:00 automount
    root      1994  0.0  0.1   1640   532 ?        Ss   14:03   0:00 /usr/sbin/acpid
    root      2003  0.0  0.0   5056   484 ?        Ss   14:03   0:00 ./hpiod
    root      2018  0.0  0.4   9812  2100 ?        Ss   14:03   0:00 cupsd
    root      2027  0.0  0.1   5168   920 ?        Ss   14:03   0:00 /usr/sbin/sshd
    root      2045  0.0  0.3   8480  1640 ?        Ss   14:03   0:00 sendmail: accepting connections
    smmsp     2053  0.0  0.2   7544  1440 ?        Ss   14:03   0:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
    root      2063  0.0  0.0   1868   360 ?        Ss   14:03   0:00 gpm -m /dev/input/mice -t exps2
    root      2072  0.0  0.2   5228  1108 ?        Ss   14:03   0:00 crond
    xfs       2103  0.0  0.3   3748  1640 ?        Ss   14:03   0:00 xfs -droppriv -daemon
    root      2112  0.0  0.1   1636   520 ?        SNs  14:03   0:00 anacron -s
    root      2120  0.0  0.0   2200   424 ?        Ss   14:03   0:00 /usr/sbin/atd
    root      2138  0.3  8.0  54104 41544 ?        S    14:03   0:11 /usr/bin/python /usr/sbin/yum-updatesd
    avahi     2148  0.0  0.2   2864  1428 ?        Ss   14:03   0:00 avahi-daemon: running [localhost2.local]
    avahi     2149  0.0  0.0   2864   320 ?        Ss   14:03   0:00 avahi-daemon: chroot helper process
    68        2158  0.0  0.7   5812  3856 ?        Ss   14:03   0:02 hald
    root      2159  0.0  0.2   3336  1108 ?        S    14:03   0:00 hald-runner
    68        2165  0.0  0.1   2292   972 ?        S    14:03   0:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.so
    root      2166  0.0  0.2   3392  1100 ?        S    14:03   0:00 /usr/libexec/hald-addon-cpufreq
    68        2170  0.0  0.1   2288   968 ?        S    14:03   0:00 hald-addon-keyboard: listening on /dev/input/event0
    root      2182  0.0  0.1   2244   788 ?        S    14:03   0:00 hald-addon-storage: polling /dev/hdc
    root      2251  0.0  0.0   1952   512 ?        S    14:03   0:00 /usr/sbin/smartd -q never
    root      2281  0.0  1.0  10400  5536 ?        Ss   14:03   0:00 /usr/bin/perl /usr/libexec/webmin/miniserv.pl /etc/webmin/mi
    root      2286  0.0  0.0   1628   440 tty1     Ss+  14:03   0:00 /sbin/mingetty tty1
    root      2290  0.0  0.0   1628   440 tty2     Ss+  14:03   0:00 /sbin/mingetty tty2
    root      2291  0.0  0.0   1624   432 tty3     Ss+  14:03   0:00 /sbin/mingetty tty3
    root      2294  0.0  0.0   1624   436 tty4     Ss+  14:03   0:00 /sbin/mingetty tty4
    root      2297  0.0  0.0   1628   436 tty5     Ss+  14:03   0:00 /sbin/mingetty tty5
    root      2310  0.0  0.0   1628   440 tty6     Ss+  14:03   0:00 /sbin/mingetty tty6
    root      2313  0.0  0.2   4488  1184 ?        Ss   14:03   0:00 /bin/sh /etc/X11/prefdm -nodaemon
    root      2318  0.0  0.7  16756  3856 ?        S    14:03   0:00 /usr/sbin/gdm-binary -nodaemon
    root      2382  0.0  0.4  15760  2516 ?        S    14:03   0:00 /usr/sbin/gdm-binary -nodaemon
    root      2386  0.0  0.3  16756  1648 ?        S    14:03   0:00 /usr/sbin/gdm-binary -nodaemon
    root      2389  0.6  3.8  24728 19948 tty7     Ss+  14:03   0:23 /usr/bin/Xorg :0 -audit 0 -auth /var/gdm/:0.Xauth -nolisten
    root      2423  0.0  1.3  23108  7192 ?        Ss   14:04   0:00 /usr/bin/gnome-session
    root      2475  0.0  0.1   4284   544 ?        Ss   14:04   0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session
    root      2478  0.0  0.2   3140  1260 ?        Ss   14:04   0:00 /bin/dbus-daemon --fork --print-pid 8 --print-address 6 --se
    root      2479  0.0  0.1   2816   516 ?        S    14:04   0:00 /usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xcli
    root      2485  0.0  0.7   7748  3960 ?        S    14:04   0:00 /usr/libexec/gconfd-2 5
    root      2488  0.0  0.1   2536   584 ?        S    14:04   0:00 /usr/bin/gnome-keyring-daemon
    root      2490  0.0  1.6  33992  8340 ?        Sl   14:04   0:00 /usr/libexec/gnome-settings-daemon
    root      2507  0.0  1.7  18344  8956 ?        Ss   14:04   0:00 metacity --sm-client-id=default1
    root      2511  0.0  2.7  48700 14280 ?        Ss   14:04   0:01 gnome-panel --sm-client-id default2
    root      2513  0.0  3.0  84524 15636 ?        Ss   14:04   0:00 nautilus --no-default-window --sm-client-id default3
    root      2517  0.0  0.5  38756  3080 ?        Ssl  14:04   0:00 /usr/libexec/bonobo-activation-server --ac-activate --ior-ou
    root      2518  0.0  1.2  44808  6324 ?        Ss   14:04   0:00 gnome-power-manager
    root      2521  0.0  0.6  11216  3416 ?        S    14:04   0:00 /usr/libexec/gnome-vfs-daemon
    root      2525  0.0  1.6  44940  8276 ?        Ss   14:04   0:00 eggcups --sm-client-id default4
    root      2529  0.0  0.7  15700  3864 ?        Ss   14:04   0:00 bluez-pin --dbus
    root      2545  0.0  2.6  25136 13436 ?        Ss   14:04   0:00 /usr/bin/python -tt /usr/bin/puplet
    root      2555  0.0  0.2   2524  1144 ?        S    14:04   0:00 /usr/libexec/gam_server
    root      2557  0.0  2.1  46572 11004 ?        S    14:04   0:00 /usr/libexec/wnck-applet --oaf-activate-iid=OAFIID:GNOME_Wnc
    root      2559  0.0  1.7  75560  8804 ?        S    14:04   0:00 /usr/libexec/trashapplet --oaf-activate-iid=OAFIID:GNOME_Pan
    root      2563  0.0  1.9  44988 10172 ?        Ss   14:04   0:00 nm-applet --sm-disable
    root      2567  0.0  0.9  15236  4688 ?        Ss   14:04   0:00 pam-panel-icon --sm-client-id default0
    root      2573  0.0  0.1   2444   836 ?        S    14:04   0:00 /usr/libexec/mapping-daemon
    root      2576  0.0  0.3  16348  2004 ?        Sl   14:04   0:00 ./escd --key_Inserted="/usr/bin/esc" --on_Signal="/usr/bin/e
    root      2585  0.0  0.1   1812   636 ?        S    14:04   0:00 /sbin/pam_timestamp_check -d root
    root      2587  0.0  2.2  47640 11476 ?        S    14:04   0:00 /usr/libexec/mixer_applet2 --oaf-activate-iid=OAFIID:GNOME_M
    root      2591  0.0  1.9  28500 10232 ?        S    14:04   0:00 /usr/libexec/clock-applet --oaf-activate-iid=OAFIID:GNOME_Cl
    root      2593  0.0  1.4  23236  7692 ?        S    14:04   0:00 /usr/libexec/notification-area-applet --oaf-activate-iid=OAF
    root      2597  0.0  2.9  63556 15284 ?        Rl   14:04   0:02 gnome-terminal
    root      2599  0.0  0.1   2440   688 ?        S    14:04   0:00 gnome-pty-helper
    root      2600  0.0  0.2   4488  1440 pts/1    Ss   14:04   0:00 bash
    root      2616  0.0  0.9  16748  4684 ?        Ss   14:04   0:00 gnome-screensaver
    root      2618  0.0  3.9  58720 20396 ?        S    14:05   0:01 gedit
    root      2690  0.0  0.2   4436  1076 ?        S    14:44   0:00 /bin/sh /usr/lib/firefox-1.5.0.7/firefox
    root      2710  0.0  0.2   4436  1172 ?        S    14:44   0:00 /bin/sh /usr/lib/firefox-1.5.0.7/run-mozilla.sh /usr/lib/fir
    root      2715  2.2  7.9 140096 40740 ?        Sl   14:44   0:22 /usr/lib/firefox-1.5.0.7/firefox-bin
    root      2750  0.0  0.4   4576  2172 pts/1    S+   14:59   0:00 ssh 172.18.15.6
    root      2755  0.3  0.2   4492  1376 pts/2    Ss   15:01   0:00 bash
    root      2767  0.0  0.1   4220   936 pts/2    R+   15:01   0:00 ps aux

  2. #2
    Rédacteur/Modérateur

    Avatar de gorgonite
    Homme Profil pro
    Ingénieur d'études
    Inscrit en
    Décembre 2005
    Messages
    10 322
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur d'études
    Secteur : Transports

    Informations forums :
    Inscription : Décembre 2005
    Messages : 10 322
    Points : 18 681
    Points
    18 681
    Par défaut
    ben en mode graphique dans le "panneau de configuration", y en a un pour les services... donc pour les empecher de démarrer automatiquement


    sinon, à la main regardes le contenu de /etc/rc[1-5].d/

    supprimes ce qui te semble inutiles... attention ne touches pas à /etc/init.d

  3. #3
    Membre à l'essai
    Inscrit en
    Octobre 2006
    Messages
    27
    Détails du profil
    Informations forums :
    Inscription : Octobre 2006
    Messages : 27
    Points : 12
    Points
    12
    Par défaut Processus vitaux
    Citation Envoyé par gorgonite
    ben en mode graphique dans le "panneau de configuration", y en a un pour les services... donc pour les empecher de démarrer automatiquement


    sinon, à la main regardes le contenu de /etc/rc[1-5].d/

    supprimes ce qui te semble inutiles... attention ne touches pas à /etc/init.d
    Supprimer le démarrage d'un processus => chkconfig « nom de service » off
    Ce que je veux est de supprimer tout et laisser tourner seulement le nécessaire. Dans mon cas il s'agit du mysqld, httpd et iptables. Mais je me demande si la machine peut tourner seulement avec ces trois processus. Si tu as une idée sur les processus vitaux d'un serveur web.
    Merci

  4. #4
    Rédacteur/Modérateur

    Avatar de gorgonite
    Homme Profil pro
    Ingénieur d'études
    Inscrit en
    Décembre 2005
    Messages
    10 322
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur d'études
    Secteur : Transports

    Informations forums :
    Inscription : Décembre 2005
    Messages : 10 322
    Points : 18 681
    Points
    18 681
    Par défaut
    Citation Envoyé par lamachine_fr
    Supprimer le démarrage d'un processus => chkconfig « nom de service » off
    tiens... c'est pas comme sous debian ou gentoo

    Citation Envoyé par lamachine_fr
    Ce que je veux est de supprimer tout et laisser tourner seulement le nécessaire. Dans mon cas il s'agit du mysqld, httpd et iptables. Mais je me demande si la machine peut tourner seulement avec ces trois processus. Si tu as une idée sur les processus vitaux d'un serveur web.

    ok... ben surtout ne coupes pas le cron

    as-tu la liste des process démarrés... plus lisible que le ps -aux

    dans un premier temps, tu peux couper gdm/xdm/kdm et xorg

  5. #5
    Membre à l'essai
    Inscrit en
    Octobre 2006
    Messages
    27
    Détails du profil
    Informations forums :
    Inscription : Octobre 2006
    Messages : 27
    Points : 12
    Points
    12
    Par défaut ps ax
    as-tu la liste des process démarrés... plus lisible que le ps -aux

    oui ps -ax

    Des pistes pour ceux qui sont dans la meme situation que moi
    http://www.oreilly.fr/contenu/2006/1...vices-inutiles
    http://www.mjmwired.net/resources/mjm-services-fc6.html

Discussions similaires

  1. [Config] [XI R2] Optimiser le Web Intelligence Report Server
    Par ghohm dans le forum Administration-Migration
    Réponses: 3
    Dernier message: 10/07/2012, 09h14
  2. [Configuration] enregister un fichier sur le server web de mon site
    Par gpsevasion dans le forum EDI, CMS, Outils, Scripts et API
    Réponses: 1
    Dernier message: 17/02/2007, 08h02
  3. PDF en viewer sur un server web
    Par cfrelet dans le forum Balisage (X)HTML et validation W3C
    Réponses: 8
    Dernier message: 26/11/2006, 15h05
  4. SQL Server Web Data Administrator
    Par bpoulain dans le forum MS SQL Server
    Réponses: 1
    Dernier message: 21/09/2006, 13h33
  5. Server Web vs Server application
    Par pmartin8 dans le forum Hébergement
    Réponses: 2
    Dernier message: 29/03/2006, 14h53

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo