watch 01:36
We're Getting Mutants in the MCU - The Loop
Do you like this video?
Play Sound
install fd21[]
disable SELINUX[]
Disabled SELinux first
sudo vi /etc/selinux/config SELINUX=disabled
add sudo previlege[]
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[]
sudo systemctl stop firewalld.service sudo systemctl disable firewalld.service
enable sshd[]
- 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[]
reboot[]
sudo reboot
config yum proxy[]
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_profile[]
- /etc/bashrc 是全局的环境配置文件
- 一般引用顺序 /etc/basrc --> ~/.basrc --> ~/.bash_profile
install synergy[]
If you want use same keyboard(mouse) for multi machine, need synergy (suggest use latest version)
install subversion[]
sudo yum install subversion svn --version
install git[]
sudo yum install git git --version
install memcached[]
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
subclipse[]
SVN Configuration:
configuration file: /home/yufei/.subversion/config current password-stores value: gnome-keyring
start memcached[]
sudo /bin/systemctl start memcached.service
configure mysql[]
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[]
./bin/mysqladmin -u root password 'new-password' ./bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
- 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[]
http://php.net/manual/en/install.unix.apache2.php
- install php
./configure --prefix=/opt/apache22 --enable-mods-shared=all --enable-so