CentOS下快速搭建一套java-web可運行環境

CentOS系統下如何快速搭建一套單機web可運行的環境

  • jdk安裝
  1. yum install java-1.8.0-openjdk
  •  mysql安裝
  1.  wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
  2.  yum -y install mysql57-community-release-el7-10.noarch.rpm
  3.  yum -y install mysql-community-server
  4.  service mysqld restart
  5.  grep "password" /var/log/mysqld.log (查看初始密碼)  
  6. GRANT ALL PRIVILEGES ON *.* TO 'root'@'host' IDENTIFIED BY 'password' WITH GRANT OPTION;(白名單設置)
  7. FLUSH PRIVILEGES;
  • tomcat
  1. yum install tomcat
  • consul
  1. wget https://releases.hashicorp.com/consul/0.7.5/consul_0.7.5_linux_amd64.zip
  2. unzip consul_0.7.5_linux_amd64.zip
  3. nohup consul agent -dev -ui -node=consul-dev -client=172.16.0.8 >> /var/data/consul/consul.log 2>&1
    (啓動 )

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章