This Is The Internet // Iste bu asagidaki resim Internetin ta kendisi:::
“Insan Herkesi Kendisi Gibi Sanarmis” – Ozlu sozlu deyis – Sayin Cengiz E. Tarafindan soylenmistir ve binlerce kez dogrulanmistir…
Hic bir kategoriye girmeyen yazilarimi buraya yazacagim..
Gecen gun gene lazim oldu.
alisamadim su centos7 olayina.
alismak lazim.
lazim olursa diye ekleyelim
How to configure a static IP address on CentOS 7
orjinal link:
hxxp://ask.xmodulo.com/configure-static-ip-address-centos7.html
If you want to set up a static IP address on a network interface in CentOS 7, there are several different ways to do it, varying depending on whether or not you want to use Network Manager for that.
Network Manager is a dynamic network control and configuration system that attempts to keep network devices and connections up and active when they are available). CentOS/RHEL 7 comes with Network Manager service installed and enabled by default.
To verify the status of Network Manager service:
To check which network interface is managed by Network Manager, run:
If the output of nmcli shows “connected” for a particular interface (e.g., enp0s3 in the example), it means that the interface is managed by Network Manager. You can easily disable Network Manager for a particular interface, so that you can configure it on your own for a static IP address.
Here are two different ways to assign a static IP address to a network interface on CentOS 7. We will be configuring a network interface named enp0s3.
Configure a Static IP Address without Network Manager
Go to the /etc/sysconfig/network-scripts directory, and locate its configuration file (ifcfg-enp0s3). Create it if not found.
In the above, “NM_CONTROLLED=no” indicates that this interface will be set up using this configuration file, instead of being managed by Network Manager service. “ONBOOT=yes” tells the system to bring up the interface during boot.
Save changes and restart the network service using the following command:
# systemctl restart network.service
Now verify that the interface has been properly configured:
# ip add
If you want to use Network Manager to manage the interface, you can use nmtui (Network Manager Text User Interface) which provides a way to configure Network Manager in a terminal environment.
Before using nmtui, first set “NM_CONTROLLED=yes” in /etc/sysconfig/network-scripts/ifcfg-enp0s3.
Now let’s install nmtui as follows.
Then go ahead and edit the Network Manager configuration of enp0s3 interface:
The following screen will allow us to manually enter the same information that is contained in /etc/sysconfig/network-scripts/ifcfg-enp0s3.
Use the arrow keys to navigate this screen, press Enter to select from a list of values (or fill in the desired values), and finally click OK at the bottom right:
Finally, restart the network service.
# systemctl restart network.service
and you’re ready to go.
3proxy?
apt-get install gcc make build-essentials || yum install make gcc mkdir /tmp/proxy cd /tmp/proxy curl -s https://f.static.or.at/st/3proxy-0.7.1.1.tgz >3proxy-0.7.1.1.tgz tar -xvzf 3proxy-0.7.1.1.tgz rm 3proxy-0.7.1.1.tgz cd 3proxy make -s -f Makefile.Linux cd src mkdir /etc/3proxy/ mv 3proxy /etc/3proxy/ cd /etc/3proxy/ cat << 'EOF' >/etc/3proxy/3proxy.cfg nserver 8.8.8.8 nserver 8.8.4.4 nscache 300 daemon users $/etc/3proxy/proxyauth auth strong flush allow user1,user2 maxconn 1024 socks -p1234 EOF cat << 'EOF' >/etc/3proxy/proxyauth user1:CL:password21 user2:CL:password22 EOF cat << 'EOF' >>/etc/rc.local /etc/3proxy/3proxy /etc/3proxy/3proxy.cfg EOF /etc/3proxy/3proxy /etc/3proxy/3proxy.cfg
Linux konsolda dosya ve dizinleri tek komut ile siralayip listelemek istiyorum.
hangi dizin ne kadar dosya barindiriyor icinde sirayla bana verirmisin lutfen ?
su komut bu is icin
du -h --max-depth=1 /home/ | sort -n -r
php timezone canimi sikiyor.
ozellikle eski sunucularda
sunucu timezone/date dogru
ancak php europe/istanbul olanlari 1 saat geri aliyor.
konumuz +3 +2 yaz saati kis saati degil
calissin bu sistemler.
1- pecl install timezonedb
2- nano /usr/local/lib/php.ini
extension=timezonedb.so
3- service httpd restart
test icin:
<?php // Prints something like: Monday 8th of August 2005 03:12:46 PM echo date('l jS \of F Y h:i:s A'); ?>
ya da
php.ini icinde
Europe/Istanbul olan satiri
Etc/GMT-3
olarak degistir.
daha kolay..
batch rename bunch of files – batch remove a part of a filename – linux
yani
toplu olarak dosyalari yeniden isimlendirmek veyahut isimde var olan bir bolumu degistirmek
komut bu su amac icin kullandim
user.bayi1.kullaniciadi.tar.gz dosyalarim var 100 kadar
ben bunlarin
kullaniciadi.tar.gz
olmasini istiyorum
dizinde su komudu calistir
rename "user.bayi1." "" *
olduda bitti masallah..
This is the best way to upgrade wget on Centos 5.x hosts
cd ~ wget http://ftp.gnu.org/gnu/wget/wget-1.16.tar.gz yum -y remove wget tar -xzvf wget-1.16.tar.gz cd wget-1.16 ./configure --with-ssl=openssl --with-libssl-prefix=/usr/lib64/openssl --prefix=/usr make && make install
bunu denemedim
ama calisira benziyor.
bir ara denerim
rsync -auHxv --numeric-ids --exclude=/etc/fstab --exclude=/etc/network/* --exclude=/proc/* --exclude=/tmp/* --exclude=/sys/* --exclude=/dev/* --exclude=/mnt/* --exclude=/boot/* --exclude=/root/* root@OLD_IP:/* /
Asrock guzel bir anakartim var
Avaton CPU gomulu.
Guzel ustunde IPMI side var
ancak zaman zaman IPMI web Interface cevap vermez oluyor.
bu durumda ipmi ipinden ssh yapabiliyorum.
ipmi web interface BMC denen dalgaya bagli olduguan gore
ssh de yapabiliyorsam
ssh yaptikdan sonra asagidaki konutu calistirim BMC yi cold reset edebiliyorum.
ipmitool mc reset cold -I lan -H 10.0.0.1 -U admin -P password