Knowledge about E-go accelerator I

As developers, no learning spirit means they will be eliminated. Without the sharp tool of learning, it is difficult to really learn.

After resigning some time ago, I taught myself the rudimentary and intermediate linux of red hat. I haven't studied it yet! Then I found that I didn't have much practice after learning. I still forgot quickly. I checked the problems of nginx yesterday and felt rusty!

C# still insists. I thought WPF was low. In the process of looking for a job, most of the interviewees were medical structure, BS, and needed form development. Then I realized that WPF is also very powerful. To this end, I also specially bought the SVIP of day and night education. I feel that I have learned too much. I have to prepare for the high project examination on May 29. It's false to say you're not tired, but it's full! Years ago, I went home and learned the basic WPF. Now I learn the advanced version of WPF, and WPF is also open source net6 has also been released. With the open source, I feel I see more hope.

Find that every time you change jobs and look for a job, you will find what it means to be outside people and outside the world! It seems that there was a hard injury in the community mentioned by fan coura by chance. It seems that there was a hard injury in the community before. Then I searched and found that choosing an accelerator was also a headache! Too many accelerators!!! I have a heart that doesn't believe in evil. I specially found some new accelerators and found that the E-go accelerator is not bad. In fact, I mainly watch this page taipinghua. It should be a low-key guy with connotation. See if it's a pit. At present, I'm still stable in coursera and haven't dropped the line! When it comes to accelerators, distributed and highly concurrent processing is indispensable! nginx is also indispensable
Next, let's talk about the deployment of nginx on linux [simple article]

wget https://www.linuxprobe.com/Software/nginx-1.6.0.tar.gz
tar nginx-1.6.0.tar.gz 
cd nginx-1.6.0/
./configure --prefix=/usr/local/nginx --without-http_memcached_module --user=www --group=www --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-openssl=/usr/local/src/openssl-1.0.1h --with-zlib=/usr/local/src/zlib-1.2.8 --with-pcre=/usr/local/src/pcre-8.35
make;make install
cd ..
ls
vim /etc/rc.d/init.d/nginx
#!/bin/bash
# nginx - this script starts and stops the nginx daemon
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /etc/nginx/nginx.conf
# config: /usr/local/nginx/conf/nginx.conf
# pidfile: /usr/local/nginx/logs/nginx.pid
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Check that networking is up.
[ "$NETWORKING" = "no" ] && exit 0
nginx="/usr/local/nginx/sbin/nginx"
prog=$(basename $nginx)
NGINX_CONF_FILE="/usr/local/nginx/conf/nginx.conf"
[ -f /etc/sysconfig/nginx ] && . /etc/sysconfig/nginx
lockfile=/var/lock/subsys/nginx
make_dirs() {
# make required directories
user=`$nginx -V 2>&1 | grep "configure arguments:" | sed 's/[^*]*--user=\([^ ]*\).*/\1/g' -`
        if [ -z "`grep $user /etc/passwd`" ]; then
                useradd -M -s /bin/nologin $user
        fi
options=`$nginx -V 2>&1 | grep 'configure arguments:'`
for opt in $options; do
        if [ `echo $opt | grep '.*-temp-path'` ]; then
                value=`echo $opt | cut -d "=" -f 2`
                if [ ! -d "$value" ]; then
                        # echo "creating" $value
                        mkdir -p $value && chown -R $user $value
                fi
        fi
done
}
start() {
[ -x $nginx ] || exit 5
[ -f $NGINX_CONF_FILE ] || exit 6
make_dirs
echo -n $"Starting $prog: "
daemon $nginx -c $NGINX_CONF_FILE
retval=$?
echo
[ $retval -eq 0 ] && touch $lockfile
return $retval
}
stop() {
echo -n $"Stopping $prog: "
killproc $prog -QUIT
retval=$?
echo
[ $retval -eq 0 ] && rm -f $lockfile
return $retval
}
restart() {
#configtest || return $?
stop
sleep 1
start
}
reload() {
#configtest || return $?
echo -n $"Reloading $prog: "
killproc $nginx -HUP
RETVAL=$?
echo
}
force_reload() {
restart
}
configtest() {
$nginx -t -c $NGINX_CONF_FILE
}
rh_status() {
status $prog
}
rh_status_q() {
rh_status >/dev/null 2>&1
}
case "$1" in
start)
        rh_status_q && exit 0
        $1
        ;;
stop)
        rh_status_q || exit 0
        $1
        ;;
restart|configtest)
$1
;;
reload)
        rh_status_q || exit 7
        $1
        ;;
force-reload)
        force_reload
        ;;
status)
        rh_status
        ;;
condrestart|try-restart)
        rh_status_q || exit 0
        ;;
*)
 
Save and exit
chmod  755 /etc/rc.d/init.d/nginx Give authority
/etc/rc.d/init.d/nginx restart restart nginx
chkconfig nginx on  open nginx

Posted by Seaholme on Fri, 15 Apr 2022 09:05:24 +0930