LoginSignup
1
0

More than 3 years have passed since last update.

CentOS7サーバを構築するためのメモ。

Posted at

概要

CentOSサーバを構築する際の備忘録。必要とあらば随時更新。

sudo権限を付与する

rootになる

$ su

でrootになる。

visudo

# visudo

とタイプすると/etc/sudoersを編集できる。デフォルトだと

## Allow root to run any commands anywhere
root    ALL=(ALL)    ALL

と記述されているが、ここに

ユーザ名    ALL=(ALL)    ALL

と記載することで、そのユーザ名の人にもsudo権限を与えることができる。

インターネット接続

ifcfg-eno1の編集

root権限で/etc/sysconfig/network-scripts/ifcfg-eno1を編集。ONBOOT=noONBOOT=yesに変更して保存。

ネットワークデーモンの再起動

# service network restart

とタイプしてネットワークデーモンを再起動後、適当なインターネットブラウザを開いてググれることを確認。

参考記事: CentOSを入れたらネットにつながらなかった話

1
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
1
0