New answers tagged

0

I have found this issue when I change my instance type in EC2 to higher one which modified the CPU too. So, because of this there is a issue with sar. Inside /var/log/sysstat/ there are two types of file named with saXX stores data. So you just move those saXX files to some folder and then run sudo service sysstat restart It will fix it :)


0

You want to use macros in your destination path or filename, for example: file("/var/log/${YEAR}.${MONTH}.${DAY}/messages" For details, see the list of syslog-ng macros


0

Try this sudo ufw allow from 192.168.10.0/24 to 192.168.10.1 port 53 proto tcp sudo ufw allow from 192.168.10.0/24 to 192.168.10.1 port 53 proto udp This will allow TCP and UDP DNS (port 53) traffic from your local private network (which I assume is 192.168.10.0/24, or in other words, 192.168.10.1-255) and not anywhere else. Finally, check to make sure ...


0

As pointed here all you need to do is remove us-east-1.ec2 from the URL. sudo sed -i 's/us-east-1\.ec2\.//g' /etc/apt/sources.list


0

If you need to have the dir contents moved, add the -m option to usermod: usermod -m -d /home/www-data www-data


4

I have the same process on one of my server. I kill it and i delete these files and directories fom /tmp: config.f conf.n \ facebook gameover.so Loader.sh Run.sh scsi_eh_320 They are all done by user "postgres". I search some malware function (\df+) in postgres database but i don't find nothing. The port 5432 is accessible from the internet so I think ...


0

Assuming you don't want to use a full configuration management system like chef you could add this to the runcmd: list: - sed -i '/<Directory \/var\/www\/>/ { N; N; s/AllowOverride None/AllowOverride All/ }' /etc/apache/sites-availabl/default The problem is that these simple changes increase in number and complexity and in the end you should have ...


0

Holding Packages Holding a package basically means you're telling the package manager to keep the current version no matter what. This is useful if more recent version of a currently working program breaks after an update. sudo apt-mark hold libapache2-mod-passenger For additional information PinningHowto



Top 50 recent answers are included