cat ./squid.conf |grep -v "^#"
cat ./squid.conf |grep -v -E "^#|^$" - исключая пусты строки
cat ./squid.conf |grep -v -E "^#|^$" - исключая пусты строки
top | grep zombie
225 processes: 1 running, 222 sleeping, 2 zombieps aux | grep -w Z
root 3994 0,0 0,0 0 0 ?? Z 13июн11 16:23,02 <defunct>
root 3995 0,0 0,0 0 0 ?? Z 13июн11 13:43,28 <defunct>ps ajx | grep -w Z
root 3994 3992 3992 3992 0 Z ?? 16:23,02 <defunct>
root 3995 3992 3992 3992 0 Z ?? 13:43,28 <defunct>ps auxww | grep 3992
root 3992 0,0 0,2 30664 9872 ?? Ss 13июн11 0:08,21 [exilog_agent] (perl5.12.3)#kill -9 3992
#top | grep zombie
#su - ## OR ## sudo -i
yum install alsa-lib.i686 fontconfig.i686 freetype.i686 glib2.i686 libSM.i686 libXScrnSaver.i686 libXi.i686 libXrandr.i686 libXrender.i686 libXv.i686 libstdc++.i686 pulseaudio-libs.i686 qt.i686 qt-x11.i686 zlib.i686
yum install alsa-lib.i686 fontconfig.i686 freetype.i686 \
glib2.i686 libSM.i686 libXScrnSaver.i686 libXi.i686 \
libXrandr.i686 libXrender.i686 libXv.i686 libstdc++.i686 \
pulseaudio-libs.i686 qt.i686 qt-x11.i686 zlib.i686
cd /tmp wget http://www.skype.com/go/getskype-linux-beta-static
mkdir /opt/skype tar xvf skype_static* -C /opt/skype --strip-components=1
cd /usr/lib ln -s libtiff.so.3 /usr/lib/libtiff.so.4
ln -s /opt/skype/skype.desktop /usr/share/applications/skype.desktop ln -s /opt/skype/icons/SkypeBlue_48x48.png /usr/share/icons/skype.png ln -s /opt/skype/icons/SkypeBlue_48x48.png /usr/share/pixmaps/skype.png touch /usr/bin/skype chmod 755 /usr/bin/skype
#!/bin/sh export SKYPE_HOME="/opt/skype" $SKYPE_HOME/skype --resources=$SKYPE_HOME $*
skype
# dmidecode -t system
# dmidecode 2.9
SMBIOS 2.3 present.
Handle 0x0100, DMI type 1, 25 bytes
System Information
Manufacturer: Dell Computer Corporation
Product Name: PowerEdge 1750
Version: Not Specified
Serial Number: 1234567
UUID: 4123454C-4123-1123-8123-12345603431
Wake-up Type: Power Switch
Handle 0x0C00, DMI type 12, 5 bytes
System Configuration Options
Option 1: NVRAM_CLR: Clear user settable NVRAM areas and set defaults
Option 2: PASSWD: Close to enable password
Handle 0x2000, DMI type 32, 11 bytes
System Boot Information
Status: No errors detected
yum -y install java-1.6.0-openjdk java-1.6.0-openjdk-devel
if not working download from here http://archive.apache.org/dist/ant/binaries/cd /usr/src
wget http://mirrors.isu.net.sa/pub/apache//ant/binaries/apache-ant-1.8.2-bin.tar.bz2
tar jxvf apache-ant-1.8.2-bin.tar.bz2
mv apache-ant-1.8.2 /usr/local/ant
if ant is not working .. first do thiscd /usr/src
svn co https://svn.apache.org/repos/asf/ant/ivy/core/trunk ivy
cd ivy
ant jar
cp build/artifact/jars/ivy.jar /usr/local/ant/lib/
export ANT_HOME=/usr/local/ant
export JAVA_HOME=/usr/lib/jvm/java
export PATH=$PATH:/usr/local/ant/bin
echo ‘export ANT_HOME=/usr/local/ant’ >> /etc/bashrc
echo ‘export JAVA_HOME=/usr/lib/jvm/java’ >> /etc/bashrc
echo ‘export PATH=$PATH:/usr/local/ant/bin’ >> /etc/bashrc
cd /usr/src
svn checkout http://red5.googlecode.com/svn/java/server/trunk/ red5
mv red5 /usr/local/
cd /usr/local/red5
ant prepare
ant dist
cp -r dist/conf .
./red5.sh
vi /etc/init.d/red5
#!/bin/sh
# For RedHat and cousins:
# chkconfig: 2345 85 85
# description: Red5 flash streaming server
# processname: red5PROG=red5
RED5_HOME=/usr/local/red5
DAEMON=$RED5_HOME/$PROG.sh
PIDFILE=/var/run/$PROG.pid# Source function library
. /etc/rc.d/init.d/functions[ -r /etc/sysconfig/red5 ] && . /etc/sysconfig/red5RETVAL=0case “$1″ in
start)
echo -n $”Starting $PROG: ”
cd $RED5_HOME
$DAEMON >/dev/null 2>/dev/null &
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo $! > $PIDFILE
touch /var/lock/subsys/$PROGfi
[ $RETVAL -eq 0 ] && success $”$PROG startup” || failure $”$PROG startup”
echo
;;
stop)
echo -n $”Shutting down $PROG: ”
killproc -p $PIDFILE
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PROG
;;
restart)
$0 stop
$0 start
;;
status)
status $PROG -p $PIDFILE
RETVAL=$?
;;
*)
echo $”Usage: $0 {start|stop|restart|status}”
RETVAL=1
esacexit $RETVAL
chmod +x /etc/init.d/red5
/etc/init.d/red5 start
/etc/init.d/red5 status
red5 (pid XXXXX) is running…
/usr/local/red5/red5.shoutput trancated[INFO] [main] org.red5.server.tomcat.TomcatLoader – RTMPT server bean was not found
[INFO] [main] org.red5.server.tomcat.TomcatLoader – RTMPS server bean was not foundoutput truncated
vi /usr/local/red5/conf/red5-core.xml
<!– RTMPT –>
<!–
<bean id=”rtmpt.server” class=”org.red5.server.net.rtmpt.TomcatRTMPTLoader” init-method=”init” lazy-init=”true”>
<!– RTMPS –>
<!–
<bean id=”rtmps.server” class=”org.red5.server.net.rtmps.TomcatRTMPSLoader” init-method=”init” lazy-init=”true”>