php,mysql的永久方法跟這個一樣
下來配置環境變量
在/etc/profile 中加入:
export NGINX_HOME=/usr/local/nginx
export PATH=$PATH:$NGINX_HOME/sbin
export PATH=$PATH:$NGINX_HOME/sbin
保存,
執行 source /etc/profile ,使配置文件生效。