Fix bad interpreter
the problem:
-bash: ./script.sh: /bin/bash^M: bad interpreter: No such file or directory
problem solving:
– edit file with vim
– type :set fileformat=unix
and enter
– save file and re-execute
the problem:
-bash: ./script.sh: /bin/bash^M: bad interpreter: No such file or directory
problem solving:
– edit file with vim
– type :set fileformat=unix
and enter
– save file and re-execute
swapoff -a
for disable swapmyhostname postfix/smtpd[26105]: fatal: open database /etc/postfix/sender_whitelist.db: Bad file descriptor
myhostname postfix/master[25978]: warning: process /usr/libexec/postfix/smtpd pid 26105 exit status 1
myhostname postfix/master[25978]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
solve this problem:
# vim /etc/postfix/main.cf
remove this config "check_sender_access hash:/etc/postfix/sender_whitelist"
and then restart postfix service.
(20014)Internal error: Error retrieving pid file logs/httpd.pid
Remove it before continuing if it is corrupted.
solve this problem:
# mv /usr/local/apache/logs/httpd.pid /usr/local/apache/logs/httpd.pid.bak
# /etc/init.d/httpd restart
1 |
# dmidecode --type 17 |
Dulu sudah pernah ditulis dan rasanya sekarang sudah banyak beredar juga di internet.. semoga tulisan ini masih bisa bermanfaat untuk belajar bersama..
1 |
# apt-get install bind9 |
1 2 3 |
# cd /etc/bind/ # cp db.127 /var/cache/bind/db.10 # cp db.local /var/cache/bind/db.kukukaki |
First, login in your proxmox over ssh and type this command:
1 2 3 4 5 6 7 8 |
root@px:~# lxc-ls 100 104 106 107 108 116 root@px:~# lxc-attach 116 root@b-test:~# passwd yourPassword nb: lxc-ls : for list the containers existing on the system lxc-attach : for runs the specified command inside the container specified by name |
Problem
1 2 3 4 |
[ERROR] I/O error reading the header from the binary log, errno=175, io cache code=0 [ERROR] I/O error reading the header from the binary log [ERROR] Can't init tc log [ERROR] Aborting' |
solved
1 2 |
# rm /var/log/mysql/mysql-bin.index # service mysql start/restart |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# apt-get install build-essential g++ make zlib1g-dev libreadline5-dev # wget -c http://mirror.poliwangi.ac.id/postgresql/source/v9.4.9/postgresql-9.4.9.tar.gz # tar zxvf postgresql-9.4.9.tar.gz # cd postgresql-9.4.9 # ln -s make /usr/bin/gmake # ./configure # gmake # su # gmake install # adduser postgres # mkdir /usr/local/pgsql/data # chown postgres /usr/local/pgsql/data # su - postgres # /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data # /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data >logfile 2>&1 & |