Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

周りの端末を探す #6

Open
aokikousuke opened this issue Sep 15, 2018 · 5 comments
Open

周りの端末を探す #6

aokikousuke opened this issue Sep 15, 2018 · 5 comments
Labels

Comments

@aokikousuke
Copy link
Collaborator

aokikousuke commented Sep 15, 2018

Webサーバーにつながる

@aokikousuke
Copy link
Collaborator Author

Webサーバーにつながる

@hiroakinet
Copy link
Collaborator

Apacheのインストール
sudo apt-get install apache2

PHPのインストール(PHP5であれば下記でOK)
sudo apt-get install php5

@hiroakinet
Copy link
Collaborator

有線LAN側のIPアドレスを固定する方法
sudo vi /etc/network/interfaces
下記を書き換える(上の3行だけで十分かも)
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1

書き終えたら
sudo ifup eth0

@hiroakinet
Copy link
Collaborator

ルータ化してから元に戻す方法

sudo ifdown wlan0
sudo ifdown eth0
sudo ifdown br0
sudo vi /etc/network/interfaces
以下を書き換える
iface eth0 inet dhcp
wlan0側も書き換えている場合は元に戻す。(元のデータが不明・・・・)

書き換えたら下記コマンド実行
sudo ifup eth0
sudo ifup wlan0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants