how to ssh key
for OS X, Unix, Linux: $ ssh-keygen -b 4096 -f folder/key default is .ssh/id_rsa choose a password example: $ cat …
for OS X, Unix, Linux: $ ssh-keygen -b 4096 -f folder/key default is .ssh/id_rsa choose a password example: $ cat …
Nginx and HAProxy has the problem that you can’t use http2 because centos 6 comes with openssl-1.0.1. HTTP2 (or more …
CentOS 6 hat aktuell noch glibc 2.15, CentOS 7 hingegen 2.17 Das Spiel Factorio hätte mittlerweile hingegen gerne 2.18. Damit …
the user ftp use as id:gid 14:50 on centos standard use the ids that fits to the specific user ftpasswd …
how to python 2.7.12 auf centos 6
1 2 3 4 5 6 7 8 9 10 11 12 |
cd /opt/ yum -y install xz gcc zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tar.xz unxz Python-2.7.12.tar.xz tar xf Python-2.7.12.tar cd Python-2.7.12/ ./configure --prefix=/usr/local --enable-unicode=ucs4 --enable-shared LDFLAGS="-Wl,-rpath /usr/local/lib" make make altinstall wget https://bootstrap.pypa.io/ez_setup.py python2.7 ez_setup.py easy_install-2.7 pip |
OUTDATED
1 2 3 4 5 6 7 |
cd /opt git clone https://github.com/letsencrypt/letsencrypt cd letsencrypt ./letsencrypt-auto --help |
Centos 6 hat standardmäßig kein Python 2.7 sondern 2.6. Sollte man nicht selber Python 2.7 installiert haben muss …
Nicht schön aber funktinoniert!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#!/bin/bash BPATH=/root/sqldump/ DATE=$(date +'%Y%m%d-%HH%MM') MySQLPW=HEREDASMYSQLDBPW DBs=`mysql -s -r --user="root" --password="$MySQLPW" -e "SELECT Db from mysql.db"` echo $DBs mkdir $BPATH/$DATE for i in ${DBs[@]} do mysqldump --user="root" --password="$MySQLPW" $i > $BPATH/$DATE/$i.sql done cd $BPATH tar czf $DATE.tar.gz $DATE/ |