{"id":404,"title":"linux\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8\u9879","good":0,"bad":0,"hit":2111,"created_at":"2018-11-16 00:08:33","content":"

\u6211\u8fd9\u91cc\u7528\u7684centos7<\/p>

\u5efa\u8bae\u5148\u770b\u4e00\u4e0blinux\u7684\u542f\u52a8\u8fc7\u7a0b\uff1a<\/p>

http:\/\/www.hu-rong.com\/article\/103<\/a> <\/p>

\u4fee\u6539\u4f60\u5f53\u524d\u767b\u5f55\u7528\u6237\u76ee\u5f55\u4e0b\u7684.bash_profile\u6587\u4ef6<\/span><\/p>

\u5982\uff0c\u5f53\u524d\u767b\u5f55\u7528\u6237\u662froot,\u5219\u6b64\u6587\u4ef6\u4e3a<\/span><\/font><\/p>

\/root\/.bash_profile<\/span><\/span><\/font><\/p>

\u5728\u91cc\u9762\u52a0\u5165\u4f60\u60f3\u542f\u52a8\u7684\u670d\u52a1\uff08\u52a0\u7c97\u90e8\u5206\uff09\uff1a<\/span><\/span><\/font><\/p>

<\/span><\/span><\/font><\/p>

[root@bogon ~]# cat .bash_profile <\/p>

# .bash_profile<\/p>

<\/p>

# Get the aliases and functions<\/p>

if [ -f ~\/.bashrc ]; then<\/p>

\t<\/span>. ~\/.bashrc<\/p>

fi<\/p>

<\/p>

# User specific environment and startup programs<\/p>

<\/p>

PATH=$PATH:$HOME\/bin<\/p>

<\/p>

export PATH<\/p>

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:\/usr\/local\/lib<\/p>

<\/p>

service nginx start<\/strong><\/p>

service redis start<\/strong><\/p>

service firewalld stop<\/strong><\/p>

\/usr\/local\/bin\/php-fpm<\/strong><\/p>

\/sbin\/service crond start<\/strong><\/p>

<\/span><\/span><\/font><\/p>"}