First, install the software [root@dns-server named]# yum install bind -y [root@dns-server named]# /etc/init.d/named start Starting named: [ OK ] [root@dns-server named]# Second, the configuration name parameter [root@dns-server named]# cat /etc/named.conf // // named.conf // // Provided by Red Hat bind package to configure the ISC BIND named(8) DNS // server as a caching only nameserver […]
CentOS add port
CentOS defaults only 22 ports to use a different port, you need to add yourself, saidonline, long time did, and here is what successful bloggers own test methods: Add port: #/sbin/iptables-I INPUT-p TCP–dport port-j ACCEPT Save settings: #/etc/rc.d/init.d/iptables save See if successfully added: #/etc/init.d/iptables status | grep tcp
CentOS log anti-Cha’s invasion
To view the log file Linux view the/var/log/wtmp file the suspicious IP login last -f /var/log/wtmp Permanent records of the log file for each user login, logout and system, shutdownevent. With increasing system uptime, the file size will increase, Increase the number of speeds depending on the system of the user logged […]
Solve the unable to ping under win-CentOS VM virtual machine system
Description: company moves to new offices, computers after using xshell failed to connect to the CentOS VM system is always connected, and taking into account thecompany moved to the situation, I first suspected IP issues, and then execute ifconfig to find CentOS VM IP, get Windows to execute the ping command in the Middle,and […]
CentOS 7.2 installation Zabbix3.X
First, CentOS installation 7 Turn off selinux #setenforce 0 temporarily closed Need to turn off selinux, be sure to close the open SELinux may cause a series ofproblems, and even the discovery functionality of ZABBIX in normal use # sed -i “s/SELINUX=enforcing/SELINUX=disabled/g” /etc/selinux/config Confirm change success # grep SELINUX /etc/selinux/config Then restart […]
CentOS7.2 PHP (Xampp PHP7 integrated)
CentOS7.2 PHP (Xampp PHP7 integrated) Server: CentOS7.2 Xampp PHP7 integrated Edition–download
1 |
https://www.apachefriends.org/xampp-files/7.0.13/xampp-linux-x64-7.0.13-0-installer.run |
Operations commands . Run file installation is very simple, you only need to add executable attribute to the file, you can perform the installation chmod +x xampp-linux-x64-7.0.13-0-installer.run ./xampp-linux-x64-7.0.13-0-installer.run Installation: ./xampp-linux-x64-7.0.13-0-installer.run Well as long as confirmation. Restart Service […]
Start-stop-daemon command CentOS 6.8
Introduction to start-stop-daemon Start-stop-daemon is a daemon in Debian systems management software, users start and stop can be specified using the software. Start-stop-daemon: http://man7.org/Linux/man-pages/man8/start-stop-daemon.8.html Start-stop-daemon installation Dpkg_1.16.18.tar.XZ download link: http://FTP.de.debian.org/debian/pool/main/d/dpkg download slower, recommended download to upload complete server, compileand install as follows:
1 2 3 4 5 6 7 |
wget http://ftp.de.debian.org/debian/pool/main/d/dpkg/dpkg_1.16.18.tar.xz tar -xf dpkg_1.16.18.tar.xz && cd dpkg_1.16.18 ./configure # configure: error: no curses library found yum install ncurses-devel -y ./configure && make find / -name start-stop-daemon # 查看start-stop-daemon位置 |
start-stop-daemon
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
cp /usr/local/src/dpkg-1.16.18/utils/start-stop-daemon /usr/local/sbin/ ####################################################################### #!/bin/sh DESC="Jenkins CI Server" NAME=jenkins PIDFILE=/var/run/$NAME.pid RUN_AS=jenkins COMMAND="/usr/bin/java -- -jar /home/jenkins/jenkins.war" d_start() { start-stop-daemon --start --quiet --background --make-pidfile --pidfile $PIDFILE --chuid $RUN_AS --exec $COMMAND } d_stop() { start-stop-daemon --stop --quiet --pidfile $PIDFILE if [ -e $PIDFILE ] then rm $PIDFILE fi } case $1 in start) echo -n "Starting $DESC: $NAME" d_start echo "." ;; stop) echo -n "Stopping $DESC: $NAME" d_stop echo "." ;; restart) echo -n "Restarting $DESC: $NAME" d_stop sleep 1 d_start echo "." ;; *) echo "usage: $NAME {start|stop|restart}" exit 1 ;; esac exit 0 |
CentOS7 configuring Nginx support HTTPS access
1. install git and BC [HTML] derived view plain copy in the CODE view of the code to my snippet yum -y install git bc 2. install Nginx (1) preparation: [HTML] derived view plain copy in the CODE view of the code to my snippet yum install -y gcc-c++ pcre pcre-devel zlib zlib-devel […]
Arch Linux coverage!!!
Canonical Ubuntu manufacturer and Microsoft already cooperate, let us experience the highly controversial Bash on Windows. Outside and this is mixed, many Linux users are questioning its usefulness, and further believe that Bash on Windows is a security threat. Unix Bash through WSL (Windows Linux subsystem) featurewas ported to Windows. Previously, we‘ve shown after installing […]
あなたの VPS に IPv6 を構成する方法
これらすべての例と仮定 2001:DB8:1000 の IPv6 サブネット::/64 です。割り当てられているサブネットにそれらを更新する必要があります。 我々 は、割り当てるメイン IP アドレスとして 2001:DB8:1000::100 を使用します。また使用する 2001:19f0:4009:2001::1234 を構成して、セカンダリ IP アドレスとして。セカンダリ IP を追加する必要はありませんが、複数の IPv6 アドレスの場合に使用するプロセスを示しています。 重要な注意: 既存のマシンに IPv6 サブネットを追加する場合は、コントロール パネル経由でサーバーを再起動 IPv6 が動作する前に。再起動または類似の SSH 経由では十分ではありません。サーバーが再起動されるまで、IPv6 はまったく動作しないと思います。サーバーの初期展開時に IPv6 を選択した場合、これは適用されません。 Windows の場合: netsh インターフェイス ipv6 設定グローバル randomizeidentifiers = 無効 netsh インターフェイス ipv6 アドレス インターフェイスを追加「ローカル エリア接続」アドレスを = =”2001:DB8:1000::100/64″ netsh インターフェイス […]