ubuntu16.04常用命令及安装各种软件

来源:互联网 发布:ipad壁纸 知乎 编辑:程序博客网 时间:2024/05/21 07:12

常用命令:

1.apach服务重启

sudo /etc/init.d/apache2 restart

2.tomcat开启关闭

开启 sh ./startup.sh

关闭 sh ./shutdown.sh


3.查看ssh服务是否安装

ps -e |grep ssh


4.ssh服务重启

sudo /etc/init.d/ssh restart

5.ssh服务启动

sudo /etc/init.d/ssh start

6.查看端口占用

netstat -apn
netstat -apn | grep 8080


7.检测GD库是否安装命令

php5.6 -m | grep -i gd

8.查看php5.6扩展

php5.6 -m 

软件安装:

1.php5.6库安装 mb_string

sudo apt-get install php5.6-mbstring

2.php5.6安装curl

sudo apt-get install curl libcurl3 libcurl3-dev php5.6-curl

3.php5.6安装gd库

sudo apt-get install php5.6-gd


原创粉丝点击