mkdir mysql5.6
757 mv MySQL-5.6.45-1.el7.x86_64.rpm-bundle.tar mysql5.6/
758 cd mysql5.6/
759 ls
760 tar -xvf MySQL-5.6.45-1.el7.x86_64.rpm-bundle.tar
761 ls
762 yum install libtinfo* -y
763 yum install libncurses* -y
764 find / -name mysql
765 rpm -ev MySQL-client-5.6.45-1.el7.x86_64 --nodeps
766 rpm -ev MySQL-devel-5.6.45-1.el7.x86_64 --nodeps
767 rpm -ivh MySQL-client-5.6.45-1.el7.x86_64.rpm
768 rpm -ivh MySQL-devel-5.6.45-1.el7.x86_64.rpm
769 rpm -ivh MySQL-server-5.6.45-1.el7.x86_64.rpm
770 systemctl start mysql
771 cat /root/.mysql_secret
772 mysql -uroot -p
773 cd ..
774 ls
775 mkdir redis
776 cd redis/
777 ls
778 wget http://download.redis.io/releases/redis-5.0.7.tar.gz
779 ls
780 yum install gcc tlc
781 yum install gcc
782 yum install tcl -y
783 ls
784 tar -zxvf redis-5.0.7.tar.gz
785 ls
786 cd redis-5.0.7/
787 ls
788 make MALLOC=libc
789 yum -y install make
790 make MALLOC=libc
791 make test
792 cd /usr/local/redis5/bin/
793 pwd
794 cd /home/lepus
795 ll
796 cd etc/
797 ll
798 vim alarm.ini
799 vim config.ini
800 cat config.ini
801 cd /home/lepus
802 ll
803 cd bin/
804 ll
805 vim ../etc/agent.ini
806 ./lepus_server_agent --config=../etc/agent.ini &
807 ps -ef|grep agent
808 ll
809 cd /tmp/
810 ll
811 tail -f lepus_server_agent.log
812 ls
813 rz
814 ls
815 df -h
816 ps -ef|grep redis
817 ps -ef|grep mysql
818 cd /home/
819 ll
820 cp /root/lepus* .
821 ll
822 tar -zxvf lepus.5.1.linux-amd64.tar.gz
823 ll
824 ln -s lepus.5.1.linux-amd64 lepus
825 ll
826 cd lepus
827 ll
828 mysql -uroot -p
829 ll
830 cd sql/
831 ll
832 mysql -uroot -p lepus < init_table.sql
833 mysql -uroot -p lepus < init_data.sql
834 cd ..
835 ll
836 cd etc/
837 ll
838 cp agent.example.ini agent.ini
839 cp alarm.example.ini alarm.ini
840 cp config.example.ini config.ini
841 cp proxy.example.ini proxy.ini
842 ps -ef|grep nsq
843 cd /usr/local/
844 ll
845 tar -zxvf nsq-1.2.1.linux-amd64.go1.16.6.tar.gz
846 mv nsq-1.2.1.linux-amd64.go1.16.6 nsq
847 ll
848 free -g
849 nohup /usr/local/nsq/bin/nsqlookupd >/dev/null 2> nsqlookupd.log &
850 ps -ef|grep snq
851 ps -ef|grep nsq
852 nohup /usr/local/nsq/bin/nsqd --lookupd-tcp-address=127.0.0.1:4160 --broadcast-address=127.0.0.1 >/dev/null 2>nsqd.log &
853 ps -ef|grep nsqd
854 nohup /usr/local/nsq/bin/nsqadmin --lookupd-http-address=127.0.0.1:4161 >/dev/null 2>nsqadmin.log &
855 ps -ef|grep nsq
856 ifconfig
857 netstat -nutpl
858 ps -ef|grep nsq
859 kill 1591333
860 nohup /usr/local/nsq/bin/nsqd --lookupd-tcp-address=172.16.6.133:4160 --broadcast-address=172.16.6.133 >/dev/null 2>nsqd.log &
861 ps -ef|grep nsqd
862 kill 1591390
863 kill 1591351
864 nohup /usr/local/nsq/bin/nsqadmin --lookupd-http-address=172.16.6.133:4161 >/dev/null 2>nsqadmin.log &
865 ps -ef|grep nsq
866 ll
867 cd /home/lepus
868 ll
869 cd etc/
870 ll
871 vim proxy.ini
872 nohup ./lepus_proxy --config=../etc/proxy.ini &
873 cd ../bin/
874 nohup ./lepus_proxy --config=../etc/proxy.ini &
875 ps -ef|grep proxy
876 tail -f /tmp/lepus_proxy.log
877 ps -ef|grep proxy
878 ./lepus_proxy --config=../etc/proxy.ini
879 vim ../etc/proxy.ini
880 mysql -h127.0.0.1 -P3306 -uroot -p
881 mysql
882 history
883 mysql -uroot -p
884 vim ../etc/proxy.ini
885 ./lepus_proxy --config=../etc/proxy.ini
886 netstat -nutpl
887 mysql -h127.0.0.1 -P330u -ulepus -pxx
888 mysql -h127.0.0.1 -P3306 -ulepus -pxx
889 telent 127.0.0.1 3306
890 mysql -h127.0.0.1 -P3306 -ulepus -pxx
891 mysql -h172.16.6.133 -P3306 -ulepus -pxx
892 msyql -uroot -p
893 mysq -uroot -p
894 mysql -uroot -p
895 vim ../etc/proxy.ini
896 ./lepus_proxy --config=../etc/proxy.ini
897 nohup ./lepus_proxy --config=../etc/proxy.ini &
898 ps -ef|grep proxy
899 ll
900 cat ../etc/proxy.ini
901 nohup ./lepus_alarm --config=../etc/alarm.ini &
902 ps -ef|grep alarm
903 curl http://127.0.0.1:8800
904 ps -ef|grep alarm
905 netstat -nutpl
906 curl http://172.16.6.133:8800
907 nohup ./lepus_task --config=../etc/config.ini &
908 ps -ef|grep lepus
909 tail -f /tmp/lepus_task.log
910 ll
911 cd ..
912 lll
913 ll
914 cd ..
915 ll
916 tar -zxvf lepus-console.5.1.linux-amd64.tar.gz
917 cd lepus-console.5.1.linux-amd64/
918 ll
919 cp setting.example.yml setting.yml
920 ll
921 vim setting.yml
922 ./lepus_console
923 nohup ./lepus_console &
924 tail -f nohup.out
925 tail -f /tmp/lepus_task.log
926 tail -f /tmp/lepus_mysql_mon.log
927 tail -f /tmp/lepus_redis_mon.log
928 history
929 curl http://172.16.6.133:8800
930 cd /home/lepus
931 ll
932 cd bin
933 ll
934 nohup ./lepus_server_agent &
935 tail -f /tmp/lepus_server_agent.log
936 ps -ef|grep lepus
937 ./lepus_server_agent
938 ps -ef|grep agent
939 ./lepus_server_agent --config=../etc/agent.ini
940 nohup ./lepus_server_agent --config=../etc/agent.ini &
941 ps -ef|grep agent
942 cd /home/lepus.5.1.linux-amd64/bin
943 ./lepus_web_mon
944 history
945 iptables -A INPUT -m iprange --src-range 172.16.6.2-172.16.6.6 -j ACCEPT
946 service iptables save
947 service iptables restart
948 history
949 ps -ef|grep lepus
950 cd /home/lepus.5.1.linux-amd64/bin
951 ./lepus_alarm --config=../etc/alarm.ini
952 nohup ./lepus_alarm --config=../etc/alarm.ini &
953 tail -f /tmp/lepus_alarm.log
954 ps -ef|grep lepus
955 ./lepus_alarm --config=../etc/alarm.ini
956 nohup ./lepus_alarm --config=../etc/alarm.ini &
nohup /usr/local/nsq/bin/nsqlookupd >/dev/null 2> /home/logs/nsqlookupd.log &
nohup /usr/local/nsq/bin/nsqd --lookupd-tcp-address=127.0.0.1:4160 --broadcast-address=127.0.0.1 >/dev/null 2>/home/logs/nsqd.log &
nohup /usr/local/nsq/bin/nsqadmin --lookupd-http-address=127.0.0.1:4161 >/dev/null 2>/home/logs/nsqadmin.log &
nohup /usr/local/nsq/bin/nsqd --lookupd-tcp-address=172.16.6.133:4160 --broadcast-address=172.16.6.133 >/dev/null 2>/home/logs/nsqd.log &
nohup /usr/local/nsq/bin/nsqadmin --lookupd-http-address=172.16.6.133:4161 >/dev/null 2>/home/logs/nsqadmin.log &
cd /home/lepus/bin/
nohup /home/lepus/bin/lepus_proxy --config=/home/lepus/etc/proxy.ini > /home/logs/lepus_proxy.out 2>&1 &
nohup /home/lepus/bin/lepus_alarm --config=/home/lepus/etc/alarm.ini > /home/logs/lepus_alarm.out 2>&1 &
nohup /home/lepus/bin/lepus_task --config=/home/lepus/etc/config.ini > /home/logs/lepus_task.out 2>&1 &
cd /home/lepus-console.5.1.linux-amd64/
nohup /home/lepus-console.5.1.linux-amd64/lepus_console > /home/logs/lepus_console.out 2>&1 &
nohup /home/lepus/bin/lepus_server_agent --config=/home/lepus/etc/agent.ini > /home/logs/lepus_server_agent.out 2>&1 &