Optical fiber sensors have been used widely in offshore oilfield. An optical fiber sensor system including an optical fiber sensor testing temperature and pressure under well, a connector connecting the optical fiber sensor with the optical cable, two connectors connecting cables, 3600 meters armoured optical cable and an interrogator was applied in an offshore oil well on Zhoushan island. The temperature and pressure under well have been measured for about two month and the testing results are presented in this paper.