How To Create a Sudo User on CentOS

https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-centos-quickstart

 

Introduction

The sudo command provides a m[……]

继续阅读

How to Add a User and Grant Root Privileges on CentOS 7

How to Add a User and Grant Root Privileges on CentOS 7

 

Step 1: Add the User

It’s just one simple command to add a user. In this case, we’[……]

继续阅读

LVS + Keepalived

https://www.server-world.info/en/note?os=CentOS_7&p=lvs&f=2

 

This is the Redundant configuration for LVS + Keepalived Server itsel[……]

继续阅读

Configure LVS (Linux Virtual Server)

https://www.server-world.info/en/note?os=CentOS_7&p=lvs&f=1

 

Configure LVS (Linux Virtual Server) to build a load barancer.
This[……]

继续阅读

shell截取字符串获取JAVA_HOME

https://stackoverflow.com/questions/10349102/shell-script-substring-from-first-indexof-substring

 

yum -y install java-1.8.0-openjdk java-1[……]

继续阅读

Centos 7 yum 安装git 2.x

https://serverfault.com/questions/709433/install-a-newer-version-of-git-on-centos-7

 

rpm -U http://opensource.wandisco.com/centos/7/git/x86_[......]

继续阅读

Centos 7 install OpenJDK 8

https://www.server-world.info/en/note?os=CentOS_7&p=jdk8&f=2

 

Install OpenJDK 8.
Oracle JDK includes compiler but compiler for OpenJD[……]

继续阅读

Install Nginx/PHP-FPM on Fedora 26/25, CentOS/RHEL 7.3/6.9

Install Nginx/PHP-FPM on Fedora 26/25, CentOS/RHEL 7.3/6.9

 

This is guide howto install Nginx with PHP 7.1.7 and PHP-FPM on Fedora 26/25[……]

继续阅读

超简单将Centos的yum源更换为国内的阿里云源

http://blog.csdn.net/chavo0/article/details/51939362

 

自己的yum源不知道什么时候给改毁了……搜到了个超简单的方法将yum源更换为阿里的源

完全参考

http://mirrors.aliyun.com/help[……]

继续阅读

centos7时间同步和时区设置

http://www.cnblogs.com/rwxwsblog/p/5799764.html

 

安装ntp服务的软件包

sudo yum install ntp

将ntp服务设置为缺省启动

systemctl enable ntpd

修改启动参数,增加-g -x参数,允[……]

继续阅读