linux雜項

重裝後激活root賬號並設置密碼php

sudo passwd root

sudo: netstat:找不到命令python

安裝net-tools:sudo apt-get install net-tools

Command 'phpize' not foundmysql

apt install php7.2-dev

expat.h: 沒有那個文件或目錄linux

apt-get install libexpat-dev

error: libxml2 not foundsql

apt-get install libxml2-dev

pecl:找不到命令apache

apt-get install php-pear

add-apt-repository: 未找到命令ubuntu

$ sudo apt-get install python-software-properties
$ sudo apt-get install software-properties-common

 gpg: 找不到有效的 OpenPGP 數據。tomcat

gpg --keyserver keyserver.ubuntu.com --recv-keys B5B7720097BB3B58
gpg -a --export B5B7720097BB3B58 | sudo apt-key add -

桌面快捷方式bash

[Desktop Entry]
Name=ideaIU
Exec=/usr/local/idea-IU-191.6183.87/bin/idea.sh
Icon=/usr/local/idea-IU-191.6183.87/bin/idea.png
Terminal=false
Type=Application

 配置系統變量php7

>>nano /etc/profile
在文末加入
JAVA_HOME=/usr/local/jdk1.8.0_201
MAVEN_HOME=/usr/local/apache-maven-3.6.0
CATALINA_BASE=/usr/local/apache-tomcat-8.5.39
CATALINA_HOME=/usr/local/apache-tomcat-8.5.39

export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin:$MAVEN_HOME/bin:$CATALINA_HOME/bin
而後輸入指令
>>source profile

一般來講上述操做就足夠了,可是有些linux系統在退出角色或者終端後,仍是會出錯,這時須要試試下面的指令
>>nano /etc/bash.bashrc
文末加上上面的配置,保存便可

 my_global.h: 沒有那個文件或目錄

apt-get install libmysqlclient-dev 或 yum install mysql-devel
相關文章
相關標籤/搜索