VirtualBox/VMware Linux image larının olduğu güzel bir site:
http://www.osboxes.org/
Dış ip bulma komutu:
$ curl ifconfig.me $ curl ip.appspot.com $ curl icanhazip.com
Web sitesinin cevap verme süresi komutu:
$ curl -s -w ‘\nLookup time:\t%{time_namelookup}\nConnect time:\t%{time_connect}\nPreXfer time:\t%{time_pretransfer}\nStartXfer time:\t%{time_starttransfer}\n\nTotal time:\t%{time_total}\n’ -o /dev/null http://www.ozkantan.com
Lookup time: 0,061 Connect time: 0,304 PreXfer time: 0,304 StartXfer time: 1,636
Total time: 2,152
Ubuntu, Debian, Linux Mint v.b. $ sudo apt-get install figlet
CentOS, RHEL, Fedora v.b. $ yum install figlet
Önce hangi fontta yazacağınıza karar vermek için
$ showfigfonts
komutunu kullanın. Daha sonra beğendiğiniz font ile yazmaya başlayın.
# figlet -f digital ozkantan.com +-+-+-+-+-+-+-+-+-+-+-+-+ |o|z|k|a|n|t|a|n|.|c|o|m| +-+-+-+-+-+-+-+-+-+-+-+-+
$ date +%r | figlet -f bubble _ _ _ _ _ _ _ _ _ _ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ ( 0 | 1 | : | 5 | 1 | : | 4 | 9 ) ( A | M ) \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/
Linuxte disk performans testi için aşağıdaki komutu kullanabilirsiniz.
Öncelikle hangi diski test edeceğinizi
df -h çıktısıyla alabilirsiniz.
Daha sonra eğer sistemde yüklü değilse repodan hdparm yükleyiniz.
Örnek ubuntuda;
apt-get install hdparm
Sonra
$ sudo hdparm -Tt /dev/sda /dev/sda: Timing cached reads: 16924 MB in 2.00 seconds = 8469.95 MB/sec Timing buffered disk reads: 1386 MB in 3.00 seconds = 461.50 MB/sec
Linux consol üzerinden internet hızınızı test edin: wget -O - https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py | python
Virtualbox otomatik olarak pc açılınca çalıştırmak için aşağıdaki kodu windowsda .bat dosyası yaparak açılışa eklemek.
cd “C:\Program Files\Oracle\VirtualBox\”VBoxManage.exe startvm “vm1”VBoxManage.exe startvm “vm2”VBoxManage.exe startvm “vm3”VBoxManage.exe startvm “vm4”
Diskteki herşeyi silen komut:
dd if=/dev/null of=/dev/sda
son 1 gün önceki tüm dosyaları bul ve istediğin dosyaları silme komutu:
find . -type f -mmin +1440 -name ‘*gz’ | xargs rm -rf
Step 1
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
Step 2. Install LAMP (Apache, PHP and MySQL) on CentOS 6.
yum update yum intsall httpd yum install –enablerepo=webtatic-testing php56w php56w-opcache yum install –enablerepo=webtatic-testing mysql55w mysql55w-server yum install –enablerepo=webtatic-testing php56w-xml yum install –enablerepo=webtatic-testing php56w-mcrypt yum install –enablerepo=webtatic-testing php56w-gd yum install –enablerepo=webtatic-testing php56w-mysql Start LAMP service, enable to start on boot: service httpd start service mysqld start
Step 3. Configure PHP for Magento.
vi /etc/php.ini
Search for the line ‘memory_limit‘ in the file:
memory_limit = 128M ### and change the value to 512 ### memory_limit = 512M
Step 4. Configuring MySQL for Magento.
mysql_secure_installation
mysql -u root -p
mysql> create database magentodb; mysql> GRANT ALL PRIVILEGES ON magentodb . * TO magento@’localhost’ IDENTIFIED BY ‘PASSWORD’ WITH GRANT OPTION; mysql> flush privileges;
Step 5. Install Magento.
cd /var/www/html/ wget http://www.magentocommerce.com/downloads/assets/1.9.1.0/tar -xvzf magento-1.9.1.0.tar.gz tar -xvzf magento-1.9.1.0.tar.gz rm magento-1.9.1.0.tar.gz
cd /var/www/html/ chmod -R o+w app/etc/ chmod -R o+w var/ chmod -R o+w media/
Step 6. Accessing Magento.
http://yourdomain.com/ or http://server-ip port 80