在 CentOS 7 里安装 tomcat 7 openjdk 1.8 nginx mysql 5.6

yum update
yum install java-1.8.0-openjdk
yum install tomcat
yum install nginx

            proxy_pass         http://127.0.0.1:8080; 
            proxy_redirect     off;
            proxy_set_header   Host             $host;
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;

yum install http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
yum install mysql-community-server

echo 0 >/proc/sys/net/ipv6/conf/all/disable_ipv6
echo 0 >/proc/sys/net/ipv6/conf/default/disable_ipv6

ifconfig sit0 up
ifconfig sit0 inet6 tunnel ::66.220.18.42
ifconfig sit1 up
ifconfig sit1 inet6 add ::2/64
route -A inet6 add ::/0 dev sit1

nohup ping6 ipv6.google.com >/dev/null 2>&1 &

标签: none

添加新评论