xshell能連接虛擬機的前提是真機能夠ping通虛擬機網址
裝OpenSSL依賴文件 [root@localhost nginx-1.12.2]# yum -y install openssl pcre-devel
依賴檢測[root@localhost nginx-1.12.2]# ./configure
[root@localhost nginx-1.12.2]# yum -y install zlib
[root@localhost nginx-1.12.2]# ./configure --without-http_gzip_module
[root@localhost nginx-1.12.2]# make && make install
[root@localhost nginx-1.12.2]# ls /usr/local/nginx/
conf html logs sbin
[root@localhost nginx-1.12.2]# cd /usr/local/nginx/
[root@localhost nginx]# pwd
/usr/local/nginx
[root@localhost nginx]# ls sbin/
nginx
[root@localhost nginx]# sbin/nginx
[root@localhost nginx]# ss -antulp | grep :80
tcp LISTEN 0 128 *:80 : users:((“nginx”,pid=59064,fd=6),(“nginx”,pid=59063,fd=6))
[root@localhost nginx]#
關閉防火墻[root@localhost nginx]# systemctl stop firewalld.service
裝[root@localhost nginx]# yum -y install mariadb
yum安裝的用systemd來起服務
源碼安裝用絕對路徑來起服務
源碼安裝:
下載對應操作系統的源碼,exec,rpm
解壓縮
安裝對應依賴
./configure
make && make install
安裝[root@localhost nginx]# yum -y install mariadb-server mariadb-devel
[root@localhost nginx]# systemctl start mariadb.service
[root@localhost nginx]# !ss
bash: !ss: command not found…
[root@localhost nginx]# !ss
ss -antulp | grep :80
tcp LISTEN 0 128 *:80 : users:((“nginx”,pid=59064,fd=6),(“nginx”,pid=59063,fd=6))
[root@localhost nginx]#
修改配置文件[root@localhost nginx]# vim conf/nginx.conf
:set nu 設置行號
u撤銷前一步操作
60 gg瞬移行
Ctrl+V
s刪除#
I shift+# esc批量加
dd刪除
sbin/nginx -s reload重啟服務
手寫頁面vim html/test.php