30 things to be done after minimal RHEL/CentOS 7 installation (2)
7. install PHP
PHP is a server-side scripting language used for basic web services. It is also often used as a general programming language. Install PHP in CentOS with minimal installation:
# yum install php
After installing php, restart the Apache service to render PHP in the Web browser.
# s
30 things to be done after minimal RHEL/CentOS 7 installation (5)30 things to be done after minimal RHEL/CentOS 7 installation (5) 25. install Linux Malware Detect (LMD)
Linux Malware Detect (LMD) is an open-source Linux malicious program scanner released under the GNU GPLv2 protocol. It is specially designed for vulne
Tags: des io ar os using SP java for fileThe first part: LINUX RHEL as 4 installation To run the prompt:1) Press the front and back of the keyboard to adjust the position of the cursor2) tick the brackets in the front of the options or remove the * number, and select this option to use the SPACEBAR to operate3) in the vi edit the file, the keyboard press a, you can modify the file content, press ESC to can
output is enforcing, which means that the SELinux policy is already in effect.If debugging is required, you can temporarily set the SELinux mode to allow. No restart is required.# Setenforce 0After debugging, set the SELinux to mandatory mode again, without restarting.# setenforce 1LCTT: In a production environment, SELinux will certainly improve security, but it does bring a lot of trouble to application deployment and operation. Specific deployment needs to be based on the situation. )24. Ins
1, Systemctl is Rhel 7 of the service management tools of the main tool, it blends the former service and Chkconfig functions in one. You can use it to enable/disable services either permanently or only in the current session.
Systemctl can list the running service status, as shown in figure:
Systemd-cgls lists the running processes in a tree, which can recursively display control group content. As show
First, the installation sequence Shun1. Install the Windows operating system first2. Re-install the RHEL 7 systemIi. in grub, add Windows boot informationBecause after installing RHEL7, only the boot information of Linux, but not the information of Windows system, need to be added manually.1. Modify the Grub custom profile (in this case Windows Server 2008 is installed on drive C, and Windows automatically
First, the installation sequence Shun1. Install the Windows operating system first2. Re-install the RHEL 7 systemIi. in grub, add Windows boot informationBecause after installing RHEL7, only the boot information of Linux, but not the information of Windows system, need to be added manually.1. Modify the Grub custom profile (in this case Windows Server 2008 is installed on drive C, and Windows automatically
.... Donechanging ownership and permissions .... DoneRunning postinstall scripts .... Doneattempting to start Webmin Mini Web server: Starting Webmin Serverinch/usr/local/program/webmin-1.750Pre-loaded Webmincore. Done***********************************************************************Webmin has been installed and started successfully. Use your webbrowser to go to http://localhost.localdomain:10000/ andLoginWith the name and password you entered previously.[Email protected] webmin-1.750]# fi
Set iptables firewall whitelist in Linux (RHEL 6 and CentOS 7)
Go to the Linux Command Line and edit the firewall rule configuration file iptables.Vi/etc/sysconfig/iptables
The following is an example of whitelist settings:
# Firewall configuration written by system-config-securitylevel# Manual customization of this file is not recommended.* Filter: Input accept [0: 0]: Forward accept [0: 0]: Output accept
Set a firewall whitelist in Linux (RHEL 6 and CentOS 7)
Go to the Linux Command Line and edit the firewall rule configuration file iptables.Vi/etc/sysconfig/iptables
The following is an example of whitelist settings:
# Firewall configuration written by system-config-securitylevel# Manual customization of this file is not recommended.*filter:INPUT ACCEPT [0:0]:FORWARD ACCEPT [0:0]:OUTPUT ACCEPT [0:0]:RH-Fire
Tags: dev get environ reset root password password Oar https string emctlNote that the official is not advocating the use of root. Download and install MySQL The latest RPM address https://dev.mysql.com/downloads/repo/yum/ #wget https://repo.mysql.com//
#rpm-IVH mysql57-community-release-el7-. noarch.rpm#yum Install Mysql-server Reset Root Password # Systemctl Stop mysqld # Systemctl set-environment mysqld_opts="--skip-grant-tables"# systemctl Start mysqld # mysql-u root MySQL>UPDATE Mysql.user-
When installing the database, the default is to turn off SELinux, the following commands we need to remember, in the wrong time may be used. Do not have any command to see the document, to professional.1. Version[[emailprotected] ~]# uname -aLinux roidb01 3.10.0-123.el7.x86_64 #1 SMP Mon May 5 11:16:57 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux[[emailprotected] ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.0 (Maipo)[[emailprotected] ~]#2. View commands[[emailprotected] ~]# g
new-m tcp-p TCP--dport 22-j ACCEPT-A input-j REJECT--reject-with icmp-host-prohibited-A forward-j REJECT--reject-with icmp-host-prohibitedCOMMITSave and exit the file. Restart the Iptables service:Service Iptables RestartIn CentOS 7, run the following command to allow the Telnet service to pass through the firewall.Firewall-cmd--permanent--add-port=23/tcpFirewall-cmd--reloadThat's it. Now the Telnet service is ready to use.Create userCreate a test us
First, the installation sequence Shun1. Install the Windows operating system first2. Re-install the RHEL 7 systemIi. in grub, add Windows boot informationBecause after installing RHEL7, only the boot information of Linux, but not the information of Windows system, need to be added manually.1. Modify the Grub custom profile (in this case Windows Server 2008 is installed on drive C, and Windows automatically
First, the installation sequence Shun1. Install the Windows operating system first2. Re-install the RHEL 7 systemIi. in grub, add Windows boot informationBecause after installing RHEL7, only the boot information of Linux, but not the information of Windows system, need to be added manually.1. Modify the Grub custom profile (in this case Windows Server 2008 is installed on drive C, and Windows automatically
RedHat Enterprise Linux 7 starts. The database that comes with the system disk is MARIADB, and the installation process is as follows:1. Mount the installation disk image:mount/dev/cdrom/mnt2. Create a Yum Source:cat >/etc/yum.repos.d/d.repo [d]Baseurl=file:///mntEof3. Import KEY:yum--import/mnt/rpm-gpg-key-redhat-release4. Installation:yum-y install mariadb-server mariadb5. Complete the installation. Start service:systemctl start Mariadb.service6. Se
1. Install VNC Viewer under Windows Client (self-download) This tutorial installs Vnc-5.2.3-windows.exe.2, Linux system download vnc-5.2.3-linux-x64-rpm.tar.gz and in the terminal[Email protected] vnc]#Tar-ZXVF vnc-5.2.3-linux-x64-rpm.Tar. GZ #得到VNC-server-5.2.3-LINUX-X64.RPM and vnc-viewer-5.2.3-linux-X64.rpm[[email protected] VNC #rpm-IVH vnc-viewer-5.2.3-linux-X64.rpm[[email protected] VNC #rpm-IVH vnc-server-5.2.3-linux-X64.rpm[[email protected] VNC #vnclicense-add fbv9v-7z3v9-med3u-47seu-85
# SYSTEMCTSystemctl can list the status of a running service
2. # Systemd-cglsSYSTEMD-CGLS lists the running processes in a tree, which can recursively display control group content3. How do I start/turn off, enable/disable services? Start a service:systemctl start postfix.serviceTo close a service:systemctl stop postfix.serviceTo restart a service:systemctl restart postfix.serviceDisplays the status of a service:systemctl status postfix.serviceenable a service at boot time:systemctl enable
rh-firewall-1-input-m State--state new-m tcp-p TCP--dport 22-j accept-a rh-firewall-1-input-m State--stat E new-m tcp-p tcp--dport 4750-j accept-a rh-firewall-1-input-m State--state new-m tcp-p TCP--dport 3306-j List-a rh-firewall-1-input-j REJECT--reject-with icmp-host-prohibited COMMIT
The part of the white list is set:
-N Whitelist
-a whitelist-s 10.202.106.1-j ACCEPT
-a whitelist-s 10.202.106.2-j ACCEPT
-a whitelist-s 10. 202.106.3-j ACCEPT
-a whitelist-s 10.202.106.4-j ACCEPT-a
access, then execute the following command:
[Root@localhost zones]# firewall-cmd--zone=public--permanent--add-port=80/tcpSuccess[Root@localhost zones]# Firewall-cmd--reloadSuccess
2, the use of the time of the order plus--permanent is the meaning of permanent entry, the Firewall service after the restart is still in force. Otherwise, only valid before restarting the service.
3, we execute the command, the results are actually reflected in the specific configuration file, in fact, we can dire
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.