yum search java-1.8.0-openjdk-devel
sudo yum install java-1.8.0-openjdk-devel
sudo yum -y install httpd
sudo service httpd start
sudo systemctl enable httpd.service
HTTP TCP 80 (plage de ports) 0.0.0.0 / 0
"sudo amazon-linux-extras install tomcat8.5
sudo yum install tomcat-webapps tomcat-admin-webapps
sudo systemctl start tomcat
5.MySQL
sudo yum list installed | grep mariadb
sudo yum remove mariadb-libs
sudo yum -y localinstall http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
sudo yum install mysql-community-server
sudo yum clean all
sudo rm -rf /var/cache/yum
yum repolist enabled | grep "mysql.*-community.*"
mysql --version
sudo /bin/systemctl start mysqld.service
systemctl list-units | grep mysqld.service
systemctl is-enabled mysqld.service
systemctl enable mysqld.service
sudo cat /var/log/mysqld.log | grep root
SET GLOBAL validate_password_length=4;
SET GLOBAL validate_password_policy=LOW;
ALTER USER root@localhost IDENTIFIED BY 'root';
vi /etc/my.cnf
i :insérer
「Esc」
「:wq」
or
「Esc」
「:w !sudo tee %」
「:q!」
my.cnf
[mysqld]
character-set-server=utf8
[client]
default-character-set=utf8
sudo systemctl restart mysqld
sudo systemctl stop mysqld
sudo yum remove mysql*
nom de fichier sudo cp.war /usr/share/tomcat/webapps
sudo rm /usr/share/tomcat/webapps/nom de fichier.war