After installing Git in the CentOS system, it is found that there is no command automatic completion function, and the Ubuntu system has this function by default, the following is implemented so that CentOS also supports GIT's command automatic
1. Centos the default is to open IP Security policy, that is, 80 ports also prohibit external access, so first deactivate iptables.
Service Iptables Stop
or open to port 80.
Iptables-i rh-firewall-1-input-m state–state new-m tcp-p tcp–dport 80-j
TarFormat: tar [options] [file directory list]Function: Package A backup of the file directoryOptions:-C to create a new archive file-R appending files to the end of the archive file-X Extract files from archive-O unlocking files to standard
Nginx CentOS Service boot Setup
Create a service file
Taking Nginx as an example
Vim/lib/systemd/system/nginx.service
Insert content in Nginx.service
[Unit]
Description=nginx
after=network.target
[service]
type=forking
execstart=
Although Aliyun launched the Cloud Shield service, but it is always safer to add a layer of firewall, the following is my Aliyun VPS on the process of configuring the firewall, currently only configure input. Both output and ForWord are accept rules.
Introduction of VarnishVarnish is a high-performance, open source reverse proxy server and caching server, its developer Poul-henning Kamp is one of the FreeBSD core developers.Varnish mainly runs two processes: the management process and the child
Demo with two new MySQL servers: mysql1:10.10.1.55 (Master) mysql2:10.10.1.56 (slave) to configure the master and subordinate, the steps are as follows: step 1: Create a copy account on MYSQL1 replcreate USER ' Repl ' @ ' 10.10.1.% ' identified by '
First, installation PreparationPackages that need to be installed:Yum Install postgresql95-devel-9.5.5-1pgdg.rhel6.x86_64.rpmDocuments can be downloaded from the official website. http://yum.postgresql.org/repopackages.phpOperating system:CentOS
Engaged in the development of STM32 more than 3 years, has been a dream to learn Linux, but suffering from no one to lead the way, in the middle of learning a few times, the results are halfway interrupted did not persist, based on coincidence again
Today is the Dragon Boat Festival, wish you a happy Dragon Boat festival! There are lots of FUN commands on the Linux system, but most of them are available on the Ubuntu/debian series release, and there are few installed on Red Hat systems; today,
1. Determine the CentOS IP address, the command is Ifconfig, the LINUXIP address is 192.168.85.128The IP address of the 2.WIndows is 192.168.16.1,3. Ensure that CentOS and windows can ping each otherPing 192.168.16.1Ping 192.168.85.1284. Turn off
Tag:restart systemctl sql stat firewall configuration install c/s Boot up accept CentOS 7.0 defaults to using firewall as the firewall, where the iptables firewall is changed. 1. Close Firewall:systemctl Stop
Configure port forwarding in CentOSEnable IP Forwarding
First, enable the IP forwarding function, which is disabled by default.
Temporary modification:
# echo 1 >/proc/sys/net/ipv4/ip_forward
The modification takes effect immediately after the
After a centos user logs on to the Amazon EC2 server, the sudo user goes to the root user.Run the yum install mysql-server command in CentOS7 AMI to find that the mysql server cannot be installed.# Sudo su-# Yum install mysql-serverLoaded plugins:
The rsync directory is mainly used for file synchronization. Now, record the configuration used.2 Test machinesRsync server IP: 192.168.171.22Client IP: 192.168.171.134Rsync server operationsCheck whether rsync is installedRpm-qa | grep rsyncInstall
1. RCAT system environment requirements and software download and installationCurrently, RCAT scripts only support 32-bit or 64-bit CentOS 5/6/7 releases, and the memory must be larger than MB. The installation environment includes the basic WEB
Recently, the walls seem to be very congested, and the Great Wall jump methods are extremely slow. No way, you can set up the shadowsocks proxy server by yourself (take CentOS as an example ).Install related dependencies (enter the following
There are many similar online tutorials, but many of them have expired or are useless. I used the following method last night. It's good, simple, and easy to use. The code is as follows:Copy code # Cat/etc/issue System version: CentOS release
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service