System environment:
CentOS 7
Apache 2.4
PHP 5.4
MARIADB 5.5
Project requirements:
Create 3 virtual hosts, set up Phpmyadmin,wordpress,discuz separately
Where phpMyAdmin provides HTTPS services.
Components required to install the environment using Yum
Httpd,php,php-mysql,mariadb-server
# yum Install httpd php php-mysql mariadb-server
Second, close the SELinux and configure the
CentOS 7.x install ELK
The first time I heard about ELK, it was Sina's @ ARGV that introduced the internal use of ELK and the scenario. At that time, it was very touched. It was so convenient to collect logs and display them, with such a tool, you have no effect after doing bad things and deleting logs.
Many companies have shown that they are very concerned about security, but they have never read or follow
This blog must be written!
For this FTP server upload a day high!
Colleague installs CentOS 7 to install FTP,FZ connection time 550 error message!
I unloaded the reload!
1, CentOS unload the Vsftpd method
If the VSFTPD service is already installed on the server, the configuration error requires uninstalling the VSFTPD service.
1.1 Find VSFTPD Services
[Root@local
This is another way to implement the wireless access point AP mode using HOSTAPD under Linux: HOSTAPD routing mode configuration.For the basic configuration of hardware and software and HOSTAPD installation in the "CentOS 7 HOSTAPD AP Mode Configuration" in the first half of the content, you can look at that article, and then read this article.HOSTAPD AP mode configuration requires a wired network card and
Install the latest LNMP environment in CentOS 7 source code
As the company requires the latest version of ZABBIX2.4.4 to require the latest version of CentOS7 and the latest version of LNMP environment, I am exploring to use the latest version of environment to build the LNMP system. The Environment version is as follows:System: CentOS
copy the instance configuration file/lib/systemd/system/vncserver @. service[root@localhost~]#cp/lib/systemd/system/vncserver@.service/etc/systemd/system/vncserver@:1.serviceStep 3 open and edit the/etc/systemd/system/vncserver @: 1. service file and replace the user item with your username.[Service]Type=forking#Cleananyexistingfilesin/tmp/.X11-unixenvironmentExecStartPre=/bin/sh-c'/usr/bin/vncserver-kill%i>/dev/null2>1||:'ExecStart=/sbin/runuser-lroot-c"/usr/bin/vncserver%i"PIDFile=/root/.vnc/
CENTOS7 Minimal installation Some components need to be installed on their own, such as Iptables,wget,vim[Email protected] yum.repos.d]# cat/etc/redhat-releasecentos Linux release 7.2.1511 (Core) [[email protected] Yum.repos . d]# Uname-r 3.10.0-229.el7.x86_641. Install CENTOS7 Select a basic installation and first turn off firewall when you are finished configuring the network:Stop firewallSystemctl Stop F
CentOS 7 Installing nginx-1.9.12First, installation environment :CentOS 7 Linux version 3.10.0-229.el7.x86_64 Nginx-1.9.12 Second, installation steps :2 . 1 shutting down the firewallBecause the Centos 7
Build a high-availability cluster in CentOS 7
This article uses two machines to implement dual-collector for high-availability clusters. the IP address of the Host Name node1 is 192.168.123168, And the IP address of the Host Name node2 is 192.168.123169.1. Install cluster Software
Software pcs, pacemaker, corosync, fence-agents-all are required. If you need to configure related services, install the corre
LAMP implementation in CentOS 7 and https-based virtual host, centoslamp
System Environment:CentOS 7In Apache 2.4Python 5.4MariaDB 5.5
Project requirements:Create three virtual hosts and set up phpMyadmin, wordpress, and DiscuzPhpMyadmin provides the https service.
I. Use yum to install components required by the EnvironmentHttpd, php, php-mysql, mariadb-server
# Yum install httpd php-mysql mariadb-server
2
Prepare the article:First, configure the firewall, open 80 port, 3306 portCentOS 7 defaults to using firewall as the firewall, where the iptables firewall is changed.1. Close firewall:Systemctl Stop Firewalld.service #停止firewallSy
two port rules added above in-a forward-j reect .... After the rule, the port is not open, and Telnet does not come in outside.
(2) Restart Iptablesservice iptables restartAfter rebooting, use Telnet 192.168.31.128 3306 again, normal.Use Navicat to connect to the database, normal.
Vi. Summary
(1) The host network is normal and cannot access the extranet in the CentOS of the virtual machine.workaround : Use NAT connection mode, set
.
Configuring YUM sources
The package version in the default YUM source for CentOS 7 may not be up to date, and if you want to install the latest package, you have to configure the YUM source.
Configuring the YUM source can be done by installing the RPM (Red Hat Package Manager) package directly, or by modifying the Repository, which is explained by the installation of the RPM method.
First you need t
command to view the Database List. The use of psql is not described in detail here. The last and most important thing is to verify the connection of the non-local client tool. After all, we are going to be a database server. Here I chose Navicat Premium, on the host (Windows7) enable Navicat to test the connection with the postgresql server in the VM:
For example, you can find that the connection is successful. Similarly, you can use the command to stop
Using Catalina_home:/usr/local/tomcat
Using Catalina_tmpdir:/usr/local/tomcat/temp
Using Jre_home:/usr/java/jdk1.7.0/jre
Using CLASSPATH:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
The above information indicates that the message has been successfully started.Firewall Open 8080 PortAdd 8080 ports to the firewall configuration and do the following:[Plain]View PlainCopy
[Email protected] ~]#
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.