获得权限:su
删除目录:rm -rf 目录
拷贝目录:cp -r 目录 目录
启动服务 sh startup.sh
查看文件:nano -w .htaccess
[查看服务] :ps -ef|grep 工程名称(c..q..r)
更改服务:
vi /etc/sysconfig/iptables
vi /etc/php.ini更改php的配置
vi /etc/httpd/conf/httpd.conf更改映射
#
DocumentRoot /var/www/html/
ServerName 127.0.0.1:80
DirectoryIndex index.html index.htm index.php index.shtml
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /canonqrc2 http://localhost:8080/canonqrc2
ProxyPassReverse /canonqrc2 http://localhost:8080/canonqrc2
DirectoryIndex index.html index.htm index.php index.shtml
# Redirect permanent /index.php http://114.112.62.25/hsqrcpma/
Options Indexes FollowSymLinks
AllowOverride ALL
Order allow,deny
Allow from all
service httpd restart 重启服务
//--------------常用命令------------------
/sbin/service httpd restart