- 25
- 11
- 2021
linux http to https recursive text replace
Kategorisi : Linuxfind /var/www/*/ -type f -exec sed -i ‘s#http://#https://#g’ {} +
find /var/www/*/ -type f -exec sed -i ‘s#http://#https://#g’ {} +
Open the file manager (by default PCManFM), go to /usr/share/applications
. Right-click on the program you want to be added to your autostart programs, and click Copy
. Now, go to ~/.config/autostart
in PCManFM, right-click and click Paste
. The program should be added to your autostart programs now, but double-check by clicking the LXMenu down left, click Settings
, and then Desktop Session Settings
.
mkdir /mnt/nassurucu
yum install cifs-utils
mount -t cifs //nassunucuadresi/kullaniciadi -o username=kullaniciadi,password=xxxxxx- /mnt/nassurucu/
2 ayrı veritabanının yedeğini tek seferde almak için cron komutu &&
/usr/sbin/plesk db dump db1 > /mnt/nasdrive/$(date +”\%d-\%m-\%Y”)-db1.sql && /usr/sbin/plesk db dump db2 > /mnt/nasdrive/$(date +”\%d-\%m-\%Y”)-db2.sql
apachetop $(ls -Rt /var/www/vhosts/*/logs/access_ssl_log | sed ‘s/^/-f ‘/ | head -15)
komutunu girdikten sonra sırasıyla (f,a,u) tuşlarına basarak sonuçlar arasında filtreleme yapabiliyoruz.
sudo apt install python-pcapy
RedHat/Fedora için:
sudo dnf install pcapy
github linki
git clone https://github.com/stamparm/maltrail.git
Gerekli güncellemeler için :
cd maltrail; sudo python sensor.py
Sunucuyu başlatalım !
sudo python server.py
Kurduğumuz arayüze gidelim.
http://127.0.0.1:8338;
Edit /etc/postfix/main.cf
Add for example: mime_header_checks = regexp:/etc/postfix/block_unwanted_attachments
save “main.cf”
Create the file “/etc/postfix/block_unwanted_attachments” with the content:
/name=[^>]*.(bat|exe|ace|iso|arj|jar)/ REJECT
service postfix restart
for i in $(find . -maxdepth 1 -type d) ; do
echo -n $i”: ” ;
(find $i -type f | wc -l) ;
done
Bir linux klasöründeki tüm dosyaların içini boşaltmak için :
find . -type f -exec sh -c ‘> {}’ \;
apt-get install monit -y
vi /etc/monit/monitrc
## bind check process named with pidfile /var/lib/named/var/run/bind/run/named.pid start program = "/etc/init.d/bind9 start" stop program = "/etc/init.d/bind9 stop" if failed host 127.0.0.1 port 53 type tcp protocol dns then restart if failed host 127.0.0.1 port 53 type udp protocol dns then restart if 5 restarts within 5 cycles then timeout
Php, ajax, jquery, mootools web programlama. Linux, apache, lamp sunucu yönetimi. Cpanel, plesk, lxadmin panel kurulumlari.
16 / 04 / 2025, 19:34:52
Web yazilim, grafik
barbetto.com