FANDOM


install fd21Edit

disable SELINUXEdit

Disabled SELinux first

sudo vi /etc/selinux/config
SELINUX=disabled

add sudo previlege Edit

su root
chmod +w /etc/sudoers
echo '${username} ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
chmod -w /etc/sudoers
exit

or

# echo "xxx ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

disable firewalld Edit

sudo systemctl stop firewalld.service 
sudo systemctl disable firewalld.service

enable sshd Edit

  • method 1
sudo systemctl enable sshd.service
  • method 2
service sshd status
service sshd start
service sshd stop
chkconfig --list sshd 
chkconfig --level 2345 sshd on

set static ip address Edit

reboot Edit

sudo reboot

config yum proxyEdit

shell> sudo vi /etc/yum.conf
#add correct proxy for your env
proxy=http://10.90.7.56:3128/

or

# echo "proxy=http://10.90.7.56:3128/" >> /etc/yum.conf

edit ~/.bash_profileEdit

  • /etc/bashrc 是全局的环境配置文件
  • 一般引用顺序 /etc/basrc --> ~/.basrc --> ~/.bash_profile

install synergyEdit

If you want use same keyboard(mouse) for multi machine, need synergy (suggest use latest version)

install subversion Edit

sudo yum install subversion
svn --version

install gitEdit

sudo yum install git
git --version

install memcached Edit

sudo yum install memcached
sudo systemctl start memcached.service
sudo systemctl stop memcached.service
[yufei@localhost ~]$ ps aux|grep memcached
memcach+  2408  0.0  0.0 314820  1092 ?        Ssl  23:42   0:00 /usr/bin/memcached -u memcached -p 11211 -m 64 -c 1024
[yufei@localhost ~]$ sudo systemctl status memcached.service
memcached.service - Memcached
  Loaded: loaded (/usr/lib/systemd/system/memcached.service; disabled)
  Active: active (running) since Fri 2014-08-01 23:42:19 CST; 19s ago
Main PID: 2408 (memcached)
  CGroup: /system.slice/memcached.service
          └─2408 /usr/bin/memcached -u memcached -p 11211 -m 64 -c 1024


subclipseEdit

SVN Configuration:

configuration file: /home/yufei/.subversion/config
current password-stores value: gnome-keyring

start memcached Edit

sudo /bin/systemctl start memcached.service


configure mysql Edit

shell> sudo vi /etc/my.cnf Add following content:

=====================
  [client]
  port            = 23306
  socket          = /var/lib/mysql/mysql.sock
  [mysqld]
  port            = 23306
  user            = mysql
  socket          = /var/lib/mysql/mysql.sock
  datadir=/var/lib/mysql
  tmpdir=/data01/rt/db/tmp
  default-character-set=utf8
  character_set_server=utf8


start mysql Edit

./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h localhost.localdomain password 'new-password'

  1. start mysql service
shell> sudo /etc/init.d/mysql.service start
#change root password to r00t
shell> mysqladmin -u root password r00t
Enter password: <Enter>

install apache, php Edit

http://php.net/manual/en/install.unix.apache2.php

  • install php
./configure --prefix=/opt/apache22 --enable-mods-shared=all --enable-so