|
基于debian的龙芯web服务器优化求助
我这里有一台龙芯最早的福珑2E盒子,性能比较低,256MB内存,做一个web服务器,参加一个网站比赛,网站内容是给与龙芯相关的,所以我们坚持用这个盒子。现在访问速度有些慢,请高手协助做一下优化,谢谢!
web服务要支持PHP,目前主要是一个mediawiki,mysql服务器在另外的服务器上面。
如下服务哪些是可以关闭的?
───────┤ rcconf - Debian Runlevel Configuration tool ├───────────┐
││
│ anacron │
│ apache2 │
│ atd ▒ │
│ avahi-daemon ▒ │
│ bootlogd ▒ │
│ bootmisc.sh ▒ │
│ checkfs.sh ▒ │
│ checkroot.sh ▒ │
│ console-screen.sh▒ │
│ cron
│ cvsd▒ │
│ dbus │
│ discover ▒ │
│ exim4 ▒ │
│ gdm ▒ │
│ glibc.sh ▒ │
│ halt▒ │
│ hdparm ▒ │
│ hostname.sh
│ hwclock.sh ▒ │
│ hwclockfirst.sh ▒ │
│ ifupdown│
│ ifupdown-clean▒ │
│ keymap.sh▒ │
│ killprocs▒ │
│ klogd ▒ │
│ libdevmapper1.02 ▒ │
│ module-init-tools │
│ mountall-bootclean.sh ▒ │
│ mountall.sh ▒ │
│ mountdevsubfs.sh ▒ │
│ mountkernfs.sh │
│ mountnfs-bootclean.sh ▒ │
│ mountnfs.sh ▒ │
│ mountoverflowtmp ▒ │
│ mtab.sh
│ networking │
│ nfs-common ▒ │
│ policycoreutils ▒ │
│ portmap ▒ │
│ pppd-dns ▒ │
│ procps │
│ rc.local ▒ │
│ reboot ▒ │
│ rmnologin▒ │
│ sendsigs
│ single ▒ │
│ ssh ▒ │
│ stop-bootlogd ▒ │
│ stop-bootlogd-single▒ │
│ sudo▒ │
│ sysklogd│
│ udev▒ │
│ udev-mtab▒ │
│ umountfs
│ umountnfs.sh ▒ │
│ umountroot ▒ │
│ urandom ▒ │
│ vsftpd ▒ │
│ wpa-ifupdown ▒ │
│ x11-common ▒ │
│ [ ] apache │
│ [ ] modutils ▒ │
│ [ ] mysql │
│ [ ] mysql-ndb-mgm
另外我在关闭x11-common 然后卸载的时候提示要卸载很多软件包,吓得我不敢做了,大家看看如下是否可以全部卸载
2e:~# apt-get remove gdm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gdm is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 45 not upgraded.
2e:~# apt-get remove x11-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
apache-common bsh emacs emacs21 emacs22 iceweasel java-gcj-compat lesstif2 libaudio-dev libaudio2 libavahi-qt3-1 libcairo2-dev libdirectfb-dev
libdirectfb-extra libfltk1.1 libgcj9-0-awt libgd2-xpm libggi2 libgl1-mesa-dev libgl1-mesa-dri libgl1-mesa-glx libglade2-0 libgle3 libglu1-mesa
libglu1-mesa-dev libglu1-xorg-dev libgtk1.2 libgtk2.0-0 libgtk2.0-bin libgtk2.0-dev libgtkmm-2.4-1c2a libhsqldb-java libice-dev libice6 libjaxp1.3-java
libjline-java libpango1.0-dev libqt3-mt libqt4-designer libqt4-dev libqt4-gui libqt4-help libqt4-opengl libqt4-qt3support libqt4-svg libqt4-webkit
libqtgui4 libscim8c2a libservlet2.4-java libsm-dev libsm6 libstartup-notification0 libtulip-ogl-2.0-dev libtulip-ogl-2.0c2a libtulip-qt4-2.0-dev
libtulip-qt4-2.0c2a libx11-dev libxalan2-java libxau-dev libxaw7 libxcb-render-util0-dev libxcb-render0-dev libxcb-xlib0-dev libxcb1-dev
libxcomposite-dev libxcomposite1 libxcursor-dev libxcursor1 libxdamage-dev libxdamage1 libxdmcp-dev libxerces2-java libxext-dev libxext6 libxfixes-dev
libxfixes3 libxft-dev libxi-dev libxi6 libxinerama-dev libxinerama1 libxmu-dev libxmu-headers libxmu6 libxmuu1 libxp6 libxpm4 libxrandr-dev libxrandr2
libxrender-dev libxss1 libxt-dev libxt6 libxtrap6 libxtst6 libxv1 libxxf86dga1 libxxf86misc1 libxxf86vm1 mesa-common-dev mysql-admin php5-gd qt3-designer
qt4-designer qt4-dev-tools qt4-qtconfig twm x11-apps x11-common x11-session-utils x11-utils x11-xfs-utils x11-xkb-utils x11proto-composite-dev
x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-xext-dev
x11proto-xinerama-dev xauth xaw3dg xbitmaps xlibmesa-gl-dev xterm xtrans-dev xulrunner-1.9 xutils-dev zhcon
0 upgraded, 0 newly installed, 132 to remove and 39 not upgraded.
After this operation, 269MB disk space will be freed.
Do you want to continue [Y/n]?
php5-gd不应该被卸载吧?也许wiki程序会用到的。或者能否可以先卸载再单独安装这个? |
|