Unable to mount or check XFS filesystem

Unable to mount or check XFS filesystem

6:34 PM  /  NCA  /  0 Comments

 xfs_repair -L /dev/centos-home...

Error Bad Sector Ubuntu

Error Bad Sector Ubuntu

5:09 AM  /  NCA  /  0 Comments

 Error like this:HDD error: print_req_error: critical medium error, dev sdb, sector xxTry this one:1. Reboot use gparted2. sudo su3. fdisk -l for lookup error disk, example /dev/mapper/PC--vg-root4. fsck -f /dev/PC--vg-root (repeat until error gone)5. e2fsck -fccky /dev/PC--vg-root6. finish and attach this disk on other fresh install OS...

Install CYGWIN SSHD for Windows

Install CYGWIN SSHD for Windows

4:49 AM  /  NCA  /  0 Comments

Install cygwinsearch packet: openssh on "full" option searchOpen cygwin from start windows and run as Administratortype $ ssh-host-config- Are you sure you want to continue: YES- You have the required privileges: YES- Overwrite existing /etc/ssh_config: YES- Should privilege separation be used: YES- Use local account 'sshd': YES- Do you want to install 'sshd' as a service: YES- name CYGWIN: just...

Optimization Moodle HTTPD For Centos

Optimization Moodle HTTPD For Centos

5:44 AM  /  NCA  /  0 Comments

Show used memory for apache processps aux | grep 'httpd' | awk '{print $6/1024 " MB";}'And for resume:ps -ylC httpd --sort:rss | awk '{sum+=$8; ++n} END {print "Tot="sum"("n")";print "Avg="sum"/"n"="sum/n/1024"MB"}'show server MPM# httpd -VServer MPM:     preforkAnd thanMaxRequestWorkers = Total available memory * 80% / Max memory usage of apache processExample i have 91GB ram, and 50MB max memory per...

Look Diference Between 2 folder in linux

Look Diference Between 2 folder in linux

7:44 PM  /  NCA  /  0 Comments

This program using  rsync rsync --recursive --delete --links --checksum --verbose --dry-run root@collo.jaringankantor:/home/anwar/public_html/ /public_html/anwar/ > dirdiff_anwar.txt...

How To Install PGBOUNCER on Centos 6

How To Install PGBOUNCER on Centos 6

11:12 PM  /  Install Server Networking Programming  /  0 Comments

Check your version of centos # cat /etc/redhat-release and then download from this link https://yum.postgresql.org/repopackages.php#pg96 if latest version is Postgresql96 Choose your operating system and then download repository: # wget https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-6-x86_64/pgdg-centos96-9.6-3.noarch.rpm # rpm -ivh pgdg-centos96-9.6-3.noarch.rpm # yum update -y # yum install pgbouncer Edit pgbouncer.ini, this is example [databases] jaringankantorcom_penerimaan = dbname=db_penerimaan host=localhost port=5432 user=xxx_user password=xxx_password [pgbouncer] logfile = /home/pgbouncer/pgbouncer.log pidfile = /home/pgbouncer/pgbouncer.pid...

How to display process with specific memory and processor linux

How to display process with specific memory and processor linux

2:55 AM  /  Install Server Networking Programming  /  0 Comments

This command display all process with name like 'postmas' ps -eo pcpu,pmem,pid,user,args --sort user |grep postmas...