原创 nginx 解決跨域需要幾行

在指定的主機location 下添加以下語句便可; 如: location / {add_header Access-Control-Allow-Origin *;add_header Access-Control-Allow-Metho

原创 Ubuntu 下如何查看已安裝的軟件

1.查看安裝的所有軟件 dpkg -l 例如:dpkg -l | grep ftp 2.查看軟件安裝的路徑 dpkg -L | grep ftp 也可以用 whereis ftp 3.查看軟件版本 aptitude show 例

原创 CentOS7使用firewalld打開關閉防火牆與端口

CentOS7使用firewalld打開關閉防火牆與端口 1、firewalld的基本使用啓動: systemctl start firewalld關閉: systemctl stop firewalld查看狀態: systemctl st

原创 You can use subscription-manager to register解決方法

yum repolist“Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-managerThis system is not re

原创 centos7 防火牆開放svn通過

firewall-cmd --permanent --add-port=3690/tcpsystemctl restart firewalld

原创 CentOS7使用firewalld打開關閉防火牆與端口

CentOS7使用firewalld打開關閉防火牆與端口 1、firewalld的基本使用啓動: systemctl start firewalld關閉: systemctl stop firewalld查看狀態: systemctl st

原创 nginx反向代理 報錯#3848: *1621 CreateFile() "

#3848: *1621 CreateFile() "D:\nginx-1.8.0/html/resources/moneyProject/img/asdfgv.png" failed (3: The system cannot find

原创 雙服務器文件實現雙向同步rsync+sersync2

server1:192.168.1.10server1:192.168.1.11 下面以在192.168.1.10 安裝爲例(紅色部分爲需要修改的地方,具體IP在192.168.1.11對調就可以) #安裝rsyncyum -y insta

原创 主從複製中從庫Last_SQL_Errno: 1062 錯誤

解決辦法:修改從庫的mysql的配置文件,/etc/my.cnf,在[mysqld]下面添加一行slave_skip_errors = 1062:wq然後重啓mysql服務

原创 mysql從庫 Last_SQL_Errno: 1 的錯誤的解決過程

 Last_SQL_Errno: 1               Last_SQL_Error: Unable to use slave's temporary directory /tmp - Can't create/write to

原创 Last_SQL_Errno: 1366

主庫上面insert沒事,從庫上面一直報錯Last_SQL_Errno: 1366               Last_SQL_Error: Error 'Incorrect string value: '\xB2\xBD\xD6\xE8

原创 supervisor安裝和配置指南

supervisor:是用python寫的一個進程管理工具,用來啓動,重啓,關閉進程。注意:Supervisor只能管理非daemon的進程,也就是說Supervisor不能管理守護進程。否則提示Exited too quickly (pr

原创 linux系統中使用頻率最多以及比較中用的命令

不同版本的Linux命令數量不一樣,這裏筆者把它們中比較重要的和使用頻率最多的命令,按照它們在系統中的作用分成幾個部分介紹給大家,通過這些基礎命令的學習我們可以進一步理解Linux系統:安裝和登錄命令:login、 shutdown、 ha

原创 將windows平臺的數據轉移到linux(centos7)平臺上

第一:在linux上給windows 上的數據庫做備份mysqldump -192.168.0.100  -u"user"   -p"password"  database名 > /root/database名.sql開通客戶機訪問linu

原创 允許用戶修改Subversion日誌的鉤子腳本 (linux)

程序員提交代碼到SVN後 發現日誌錯誤 需要修改,但無權限 錯誤提示“此版本庫不允許修改版本屬性,請管理員創建pre-revprop-change 鉤子”按提示進行操作,SVN 服務器在linux環境下,進入/svndata/項目/hook