In which .htaccess file in APACHE(OS: Linux centos) server do i need to update
Tag : linux , By : pdkent
Date : March 29 2020, 07:55 AM
With these it helps You can either add it to the .htaccess file in your DocumentRoot or better yet, add it to your httpd.conf file and restart the webserver.
|
how to set default maximum heap size for Java (xmx), for linux (centos)
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , You could try adding this to your shell profile export _JAVA_OPTIONS=-Xmx16m This may or may not work depending on what JVM you are running.
|
Centos/Linux setting logrotate to maximum file size for all logs
Tag : linux , By : sayuki288
Date : March 29 2020, 07:55 AM
it should still fix some issue It specifies the size of the log file to trigger rotation. For example size 50M will trigger a log rotation once the file is 50MB or greater in size. You can use the suffix M for megabytes, k for kilobytes, and G for gigabytes. If no suffix is used, it will take it to mean bytes. You can check the example at the end. There are three directives available size, maxsize, and minsize. According to manpage: minsize size
Log files are rotated when they grow bigger than size bytes,
but not before the additionally specified time interval (daily,
weekly, monthly, or yearly). The related size option is simi-
lar except that it is mutually exclusive with the time interval
options, and it causes log files to be rotated without regard
for the last rotation time. When minsize is used, both the
size and timestamp of a log file are considered.
size size
Log files are rotated only if they grow bigger then size bytes.
If size is followed by k, the size is assumed to be in kilo-
bytes. If the M is used, the size is in megabytes, and if G is
used, the size is in gigabytes. So size 100, size 100k, size
100M and size 100G are all valid.
maxsize size
Log files are rotated when they grow bigger than size bytes even before
the additionally specified time interval (daily, weekly, monthly,
or yearly). The related size option is similar except that it
is mutually exclusive with the time interval options, and it causes
log files to be rotated without regard for the last rotation time.
When maxsize is used, both the size and timestamp of a log file are
considered.
"/var/log/httpd/access.log" /var/log/httpd/error.log {
rotate 5
mail www@my.org
size 100k
sharedscripts
postrotate
/usr/bin/killall -HUP httpd
endscript
}
|
Settng up svn server on linux (centos)
Tag : svn , By : Michael Gunderson
Date : March 29 2020, 07:55 AM
hop of those help? I had to do 2 things to get this working: 1) Follow the tutorial I posted above, this was the last one I tried and it worked C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe -l svnUsername -pw password
|
java.io.IOException: File Size Incorrect (only get error on linux (CentOS 6))
Tag : java , By : lietkynes
Date : March 29 2020, 07:55 AM
This might help you I'm trying to rebuild an old java wrapper script for a game, but i don't know why i get an error when i run it in in my VPS (CentOS 6), i only get the error when i'm running it in there, in my mac or pc with windows 10 it doesn't happen... , The issue is that file names are case sensitive on Linux. outputStream = new FileOutputStream("StarMade-latest.zip");
...
final File starmadeUpdate = new File("starmade-latest.zip");
|