If you install MySQL RM/etc/my.cnf unload, otherwise ignore Uninstall the installed MySQL Yum remove MySQL MySQL-Server MySQL-libs compat-mysql51 (51 to version) rm –rf /var/lib/mysql rm /etc/my.cnf See if there are MySQL software rpm -qa|grep mysql If there is, will continue to Yum–y remove query software […]
When you install CentOS USB stopped at the Reached target Basic System solutions
A, problem description First describe the scenario, that is, during the boot process, when reading reading [OK] Reached target Basic System Stuck after this line do not proceed Second, seek solutions Actually this question two years ago has been found, but you can also use the CD to install the system, recently removed because […]
Centos6.8 set up NDS Server (bind)
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 […]