0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS 6.8 64bitの初期設定いろいろ1

0
Posted at

sudo設定

visudoで
Allow root to run any commands anywhere
root ALL=(ALL) ALL

Allow root to run any commands anywhere
root ALL=(ALL) ALL
tkl ALL=(ALL) ALL
に変更

gccの設定

4.4.7を4.8.2に変える
gcc -vこれで確認
http://www.task-notes.com/entry/20151114/1447492231を参考にした。
devtoolset-3を入れた
yum install scl-utils
cd /etc/yum.repos.d/
wget https://copr-fe.cloud.fedoraproject.org/coprs/rhscl/devtoolset-3/repo/epel-6/rhscl-devtoolset-3-epel-6.repo

yum install devtoolset-3-gcc devtoolset-3-binutils
`yum install devtoolset-3-gcc-c++ devtoolset-3-gcc-gfortran

入ったかどうか確認
ll /opt/rh/devtoolset-3/root/usr/bin/gcc

/devtoolset-3/root/usr/bin/gcc
ll /opt/rh/devtoolset-3/root/usr/bin/g++

PATHを通す
scl enable devtoolset-3 bash

このままだとシェルを起動する度に上のscl enableのコマンドを入れることになるので自動化が必要。そちらに関するURL

ちなみにglibcを確認する時はいかのコマンド
yum list installed | grep glibc

ネットワーク設定

iptableの設定
cp -ipv /home/tkl/backup/iptables.backup /root/iptables.backup
cp -ipv /home/tkl/backup/iptables.backup3 /root/iptables.backup3

確認場所はrootに入ってから
cd /
cd root
ls
でオッケー

restoreするときは
iptables-restore < /root/iptables.backup
service iptables save
cat /etc/sysconfig/iptables

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?