Aklımda Kalası Kelimeler

* давайте работать вместе
* Zarf ve Mazruf, Zerafet(xHoyratlık) ile aynı kökten(za-ra-fe) gelir
* Bedesten
* Suç subuta ermiştir - Suç sabit olmuştur

7 Eylül 2010 Salı

Linux Komutları

Centos üstünde servis işlemleri

systemctl -l // Tümünü listeler
systemctl stop elasticsearch.service  //elasticsearch.service durdurulur
systemctl start elasticsearch.service //elasticsearch.service çalıştırılır

service --status-all
service --status-all | more
service --status-all | grep ntpd
service --status-all | less

YUML(Centos, Redhat) ile yüklenmiş paketleri listeleme

yuml list installed

Dizin-dosya Listeleme

ls -l |more

Ağ(network) ayarlarını listelemek

ifconfig

Bilgisayarı yeniden başlatmak

reboot


DNS İşlemerine Dair


DNS kayıtlarındaki tarihçeyi veriyor intodns.com aşağıda bir örneği var.
http://www.intodns.com/man4it.com


DNS kayıtlarını (A, MX v.s.) sorgulamak için www.mxtoolbox.com
http://www.mxtoolbox.com/SuperTool.aspx?action=mx%3aman4it.net


QMAIL TOASTER


http://192.168.1.67/admin-toaster/index.php
kulAdi: admin
şifre: toaster

http://192.168.1.67/webmail



http.conf İçinde Aynı Server Üstünde Farklı Alan Adları Tanımlamak


Referans: http://httpd.apache.org/docs/2.0/vhosts/examples.html
# Ensure that Apache listens on port 80
Listen 192.168.1.66:80

# Listen for virtual host requests on all IP addresses
NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot /www/example1
ServerName www.example1.com

# Other directives here

</VirtualHost>

<VirtualHost *:80>
DocumentRoot /www/example2
ServerName www.example2.org

# Other directives here

</VirtualHost>


fstab [ filesystem table ]

Ref: http://www.tuxfiles.org
There's a file called /etc/fstab in your Linux system. fstab is a plain text configuration file that contains information of all the partitions and storage devices in your computer. If you can't access your Windows partition from Linux, aren't able to mount your CD or write to your floppy as a normal user, or have problems with your CD-RW, you probably have a misconfigured /etc/fstab file. So, you can usually fix your mounting problems by editing your fstab file.


/dev/hda2/ext2defaults1 1
/dev/hdb1/homeext2defaults1 2
/dev/cdrom/media/cdromautoro,noauto,user,exec0 0
/dev/fd0/media/floppyautorw,noauto,user,sync0 0
proc/procprocdefaults0 0
/dev/hda1swapswappri=420 0
roMount the filesystem read-only.
rwMount the filesystem read-write. Again, using this option might cure the headache of many new Linux users who are tearing their hair off because they can't write to their floppies, Windows partitions, or something else.
sync and asyncHow the input and output to the filesystem should be done. sync means it's done synchronously. If you look at the example fstab, you'll notice that this is the option used with the floppy. In plain English, this means that when you, for example, copy a file to the floppy, the changes are physically written to the floppy at the same time you issue the copy command.
However, if you have the async option in /etc/fstab, input and output is done asynchronously. Now when you copy a file to the floppy, the changes may be physically written to it long time after issuing the command. This isn't bad, and may sometimes be favorable, but can cause some nasty accidents: if you just remove the floppy without unmounting it first, the copied file may not physically exist on the floppy yet!
async is the default. However, it may be wise to use sync with the floppy, especially if you're used to the way it's done in Windows and have a tendency to remove floppies before unmounting them first.
exec and noexecexec lets you execute binaries that are on that partition, whereas noexec doesn't let you do that. noexec might be useful for a partition that contains binaries you don't want to execute on your system, or that can't even be executed on your system. This might be the case of a Windows partition.
exec is the default option, which is a good thing. Imagine what would happen if you accidentally used the noexec option with your Linux root partition...
user and nouserThese are very useful options. The user option allows normal users to mount the device, whereas nouser lets only the root to mount the device. nouser is the default, which is a major cause of headache for new Linux users. If you're not able to mount your cdrom, floppy, Windows partition, or something else as a normal user, add the user option into /etc/fstab.
auto and noautoWith the auto option, the device will be mounted automatically (at bootup, just like I told you a bit earlier, or when you issue the mount -a command). auto is the default option. If you don't want the device to be mounted automatically, use the noauto option in /etc/fstab. With noauto, the device can be mounted only explicitly.
defaultsUses the default options that are rw, suid, dev, exec, auto, nouser, and async.



Bir aygıtı bir bağlantı noktasına bağlamak için:$ mount /dev/fd0 /mnt/floppy

  1. Solaris de adı vfstab dır.
  2. programlar bu dosyaya dokunmamalidir, sadece icabinda system administrator degistirmelidir. "mount -a" komutu, bu dosyadaki butun filesystemlari mount eder.
  3. istediginiz surucuyu mount ettiniz, ama bilgisayari yeniden baslattiginizda yeniden mount etmeniz mi gerekiyor ? iste bu dosyaya istediginiz surucuyu girin,her boot'tan sonra surucu otomatik olarak mount edilmis olsun