IDEA configures ECMAScript6 syntax to ECMAScript5 to improve JS coding efficiency

2023-01-21   ES  

1. Virtual machine vmware12

2.linux system: CentOS-7-X86_64-DVD-1810

3. Install the linux system, and make sure that the virtual system can access the Internet after installation.

There are two ways: LAMP/LNMP

LAMP: Linux+Apache+MySQL/Mariadb+Perl/PHP/Python, a set of open source software that is often used to build dynamic websites or servers. The higher the compatibility, the stronger web application platform is formed.

LNMP: LNMP refers to a one -click installation package based on Centos/Debian -based Nginx, PHP, MySQL, PHPMYADMIN, Eaccelerator. You can easily install the LNMP production environment on VPS and independent hosts.

L:linux

A:apache

N:nginx

M:mysql,mariaDB

P:php,python,perl

computer configuration should be high.

Reference document: https://www.jb51.net/article/148736.htm

https://www.cnblogs.com/Sungeek/p/9069999.html

https://blog.51cto.com/secnet/1977468

zibbx official website:

https://www.zabbix.com/cn/download?zabbix=3.0&os_distribution=centos&os_version=7&db=mysql

Instructions:

https://blog.51cto.com/13641879/2165787

Preparation before installation:

1.1 Installation dependency package:

1.2 Close the firewall:

need to close Selinux, it must be closed. Opening Selinux will cause a series of problems. Even Zabbix’s Discovery function cannot be used normally

systemctl stop firewalld.service

systemctl disable firewalld.service

#sed -i “s/SELINUX=enforcing/SELINUX=disabled/g” /etc/selinux/config

Confirm whether to modify it successfully

#grep SELINUX /etc/selinux/config

and then restart the system.

[If! SupportLists] 2. [Endif] Install Zabbix Server3.0

Before installing Zabbix Server3.0 on Centos7, we first built the LAMP environment required by Zabbix.

download the latest YUM source, as follows:

#wget -P /etc/yum.repos.d http://mirrors.aliyun.com/repo/Centos-7.repo
在这里插入图片描述
Need to install

1.Apache:

yum install -y httpd
在这里插入图片描述
httpd service boot to start self -activation

systemctl enable httpd

在这里插入图片描述
Start HTTPD service

Systemctl start httpd
在这里插入图片描述
Edit homepage file and access test

vim /var/www/html/index.php

<?php phpinfo();?>

http://192.168.10.128/ // Browser input test

If this interface is not available,

Instructions are that the firewall blocks port 80, just let go of port 80

Add

firewall-cmd –zone=public –add-port=80/tcp –permanent

Re -load

firewall-cmd –reload

View

firewall-cmd –zone=public –query-port=80/tcp
在这里插入图片描述
Before starting the installation, it is necessary to explain that the MySQL comes with CentOS7 is MariaDB. We can view through the following command:

#yum search mysql|tac
在这里插入图片描述
Now start installing the LAMP environment and use the following command:

#yum -y install mariadb mariadb-server php php-mysql httpd

在这里插入图片描述
Through the above figure, we can clearly see that CentOS7 is installed by CENTOS7 default is PHP5.4, HTTPD2.4 and Maradb5.5, which fully meets the requirements of the software version of ZABBIX3.0. After LAMP is installed, we now configure mysql database.

Set up the self -starting mysql, and start mysql, and use the following command:

systemctl enable mariadb.service

systemctl start mariadb.service

can also be verified:

Initialize mysql database and configure the root user password. Use the following command:

#mysql_secure_installation
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
Note: At the Enter Current Passwdord for Root in the figure above, we can knock on the car button directly. Because mysql’s default root user password on CentOS7 is empty. The above figure is mainly to configure the password for the root user and refresh the relevant permissions. (The password is set to 123456, only for experimental, the production environment is customized) Remove Anonymous Users? Delete anonymous users? DISALLOW ROOT LOGIN Remotly? It is forbidden for ROOT to remotely log in to Remove Test DataBase and Access to It? Delete the test database and access it with its RELOAD Privilege Tables now. Emperor related configuration.

After the initialization of

MySQL, we are now creating the ZABBIX database and its users, and the following commands are used:

mysql -uroot [email protected] -e “create database zabbix default character set utf8 collate utf8_bin;”

mysql -uroot [email protected] -e “grant all privileges on zabbix.* to [email protected] identified by ‘zabbix’”
在这里插入图片描述
Now testing whether the Zabbix user just created can connect the MySQL database, as follows:

[[email protected] ~]# mysql -uzabbix -pzabbix

MariaDB [(none)]> show databases;

MariaDB [(none)]> quit
在这里插入图片描述
Through the above figure, we can clearly see that Zabbix users can connect the database normally.

Start Apache and open port 80, as follows:

[[email protected] ~]# systemctl start httpd.service

[[email protected] ~]# netstat -ltun
在这里插入图片描述
The LAMP environment has been completed here.

source

Related Posts

IDEA ‘Error: Java: Invasant source distribution version: 10’ solution

WeChat confession mysterious code! Quickly send it to TA!

Enter a string through the keyboard to determine the most characters in the string and output the character and output number of times

Support vector machine (3) core function

IDEA configures ECMAScript6 syntax to ECMAScript5 to improve JS coding efficiency

Random Posts

Use AJAX asynchronous school verification code (transfer)

OPENCV mouse control window size (1.0VISON)

python reptile: crawling WeChat articles Qingmu

ubuntu16.04 Install Turtlebot

Elementui restrictions start and end the number of days of the end of the day, you can choose up to 31 days