-
Notifications
You must be signed in to change notification settings - Fork 61
/
TSR016_notes (Commands).txt
72 lines (41 loc) · 1 KB
/
TSR016_notes (Commands).txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#Bernardo Arocho (BTNHD)
Azure commands:
sudo apt-get update
sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install php5 libapache2-mod-php5
sudo /etc/init.d/apache2 restart
check localhost
php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'
------------------------------------------------------------------------
cd /etc/network
sudo vi interfaces (i - insert)
iface enp0s3 inet static
address xxx.xxx.xx.xx
netmask 255.255.xxx.xxx
gateway xxx.168.xx.xxx
(ESC) :wq (ENTER)
(stop/restart)
sudo ifconfig enp0s3 down
sudo ifconfig enp0s3 up
ifconfig
cd /etc
ls
sudo vi resolv.conf
nameserver 192.168.xxx.xxx
nameserver 192.168.xxx.xxx
date
sudo date -s 0325
date --help
LAMP (Linux, Apache, MySQL, PHP)
sudo mysql_secure_installation
sudo update-rc.d apache2 defaults
cd /etc
sudo find / -name apache2.conf
cd /etc/apache2
ls
cat apache2.conf | less
cd /var/www
ls
cd html
ls